阅读:4167回复:8
贡献一个我觉得不错的标签栏和标题栏合并的脚本
http://userstyles.org/styles/36877
-moz-padding-start: 9.5em !important; -moz-padding-end: 9em !important; 这个距离需要根据自身的情况调节一下。忘了说了,仅限4.0使用 |
|
1楼#
发布于:2010-10-20 08:45
想我的这种情况 要怎么调整啊
|
|
2楼#
发布于:2010-10-20 08:45
XP下用效果不完美,標籤頁和瀏覽工具按鈕地址欄中會有一條明顯分界線,margin-top: -24px調到-26px會好一些,但標籤頁與上面的界線就沒了,不用Personas的話還馬馬虎虎可以用,用Personas的話由於XP不透明,效果就比較悲劇,還不如按一下打開瀏覽器後F11全屏使用。
|
|
3楼#
发布于:2010-10-20 08:45
谢 了! 效 果 不 错 .
|
|
4楼#
发布于:2010-10-20 08:45
这个脚本有个问题就是不用personas时整个界面都是系统默认的色调。用personas时,标签栏的自画标题栏就会出现,而导航栏却是personas的背景。不知怎么解决
第一个标签页左侧和Firefox按钮之间的间距调整 -moz-padding-start: 9.5em !important; 把9.5改小一点,比如6.5,同样后面那个tab candy图标和最小化按钮的距离也可以调整小一点 -moz-padding-end: 9em !important; 比如改为6,看自己的情况了。调整标签背景色这个也不太会,不过可以参考别的帖子试试 https://www.firefox.net.cn/forum/viewtopic.php?t=33002 /* Fix tab styling for the dark background */ #main-window[sizemode="maximized"][tabsontop="true"][chromemargin]:not([inFullscreen]) #alltabs-button[type="menu"] { list-style-image: url("chrome://browser/skin/appmenu-dropmarker.png") !important; -moz-image-region: rect(0, 9px, 7px, 0) !important; } #main-window[sizemode="maximized"][tabsontop="true"][chromemargin]:not([inFullscreen]) #alltabs-button[type="menu"] image { opacity: 0.7 !important; margin-top: 4px !important; } #main-window[sizemode="maximized"][tabsontop="true"][chromemargin]:not([inFullscreen]) .tabbrowser-tab:not([selected="true"]), #main-window[sizemode="maximized"][tabsontop="true"][chromemargin]:not([inFullscreen]) .tabs-newtab-button, #main-window[sizemode="maximized"][tabsontop="true"][chromemargin]:not([inFullscreen]) #TabsToolbar > #home-button { background-image: -moz-linear-gradient(hsla(0,0%,80%,.6), hsla(0,0%,75%,.4) 50%, hsla(0,0%,70%,.4) 51%) !important; text-shadow: white 0 0 2px; } #main-window[sizemode="maximized"][tabsontop="true"][chromemargin]:not([inFullscreen]) .tabbrowser-tab:not([selected="true"]):hover, #main-window[sizemode="maximized"][tabsontop="true"][chromemargin]:not([inFullscreen]) .tabs-newtab-button:hover, #main-window[sizemode="maximized"][tabsontop="true"][chromemargin]:not([inFullscreen]) #TabsToolbar > #home-button:hover { background-image: -moz-linear-gradient(hsla(0,0%,100%,.<!-- s8) --><img src="{SMILIES_PATH}/icon_cool.gif" alt="8)" title="Cool" /><!-- s8) -->, hsla(0,0%,90%,.6) 50%, hsla(0,0%,85%,.6) 51%) !important; } |
|
5楼#
发布于:2010-10-20 08:45
感谢楼主的提供啊,用了这个UserChrome.css再搭配任意的Personas,XP下的Fx4的标签栏终于有XP默认底色了,除了没有Aero效果,和Win7下的Fx4也差不多啦。
还有两个问题,就是当前标签页和后台标签页的背景色有点暗了;第一个标签页左侧和Firefox按钮之间的间距如何调整? |
|
|
6楼#
发布于:2010-10-20 08:45
我这里能上啊,干脆贴出来算了,没有几行
@namespace url(http://www.mozilla.org/keymaster/gateke ... s.only.xul); #main-window[sizemode="maximized"][tabsontop="true"][chromemargin]:not([inFullscreen]) #TabsToolbar { -moz-padding-start: 9.5em !important; -moz-padding-end: 9em !important; } window[sizemode="maximized"]:not([inFullscreen]) #navigator-toolbox[tabsontop="true"] #TabsToolbar { margin-top: -24px !important; -moz-box-ordinal-group: 1 !important; padding-left: 110px !important; padding-right: 130px !important; } #main-window[tabsontop="true"]:not([inFullscreen]) #appmenu-button-container { position: fixed !important; z-index: 1; } #main-window:not([chromehidden=""]) #appmenu-button-container {margin-top: -7px !important; } #main-window[tabsontop="true"]:not([inFullscreen]) #titlebar-buttonbox { position: relative !important; z-index: 1; } #main-window[tabsontop="true"]:not([inFullscreen]) #TabsToolbar { position: relative !important; } |
|
7楼#
发布于:2010-10-20 08:45
晕,怎么userstyle.org打不开了?
|
|
|
8楼#
发布于:2010-10-20 08:45
感谢提供
|
|