阅读:7279回复:11
将Firefox 4.0火狐按钮与下面的工具栏合并(用于默认主题且启用Aero)
将 Firefox 4.0 火狐按钮与下面的工具栏合并。Firefox默认只是在最大化且标签工具栏置顶时才有效,而这个CSS脚本没有这个限制。以前的CSS脚本太旧了,这次的脚本,适用于4.0 b9或者b10pre 的默认主题,且启用了Aero的 Windows Vista/7/2008 上。
#main-window[sizemode="normal"] #titlebar, #main-window[tabsontop="false"] #titlebar { position: fixed !important; margin-top: 0px !important; } #main-window #titlebar-buttonbox-container { display: none; } #main-window #navigator-toolbox { margin-top: 0px !important; } #main-window[sizemode="normal"] #appmenu-button, #main-window[tabsontop="false"] #appmenu-button { padding-left: 8px !important; padding-right: 8px !important; width: 80px !important; /* 这个值比下面的 padding-left: 值小3 */ } #main-window[sizemode="normal"] #toolbar-menubar, #main-window[tabsontop="false"]:not([inFullscreen="true"]) #toolbar-menubar, #main-window[tabsontop="false"]:not([inFullscreen="true"]) #nav-bar, #main-window[sizemode="normal"][tabsontop="true"] #TabsToolbar { padding-left: 83px !important; /* 这个值比上面的 width: 值大3 */ } #main-window[tabsontop="false"]:not([inFullscreen="true"]) #nav-bar, #main-window[tabsontop="true"]:not([inFullscreen="true"]) #TabsToolbar { padding-right: 105px !important; /* 用户可能需要调整这里的这个参数 */ } #main-window[sizemode="maximized"][tabsontop="false"] #nav-bar { margin-top: 4px !important; } #navigator-toolbox[tabsontop="true"] > #nav-bar { border: 0px !important; background: transparent !important; } #main-window[inFullscreen="true"] { -moz-appearance: -moz-win-glass !important; background-color: transparent !important; } #PersonalToolbar, #browser-bottombox, #FindToolbar, #status-bar{ -moz-appearance: none !important; background: transparent !important; text-shadow: rgb(255, 255, 255) 0px 0px 10px, rgb(255, 255, 255) 0px 0px 10px, rgba(255, 255, 255, 0.5) 0px 1px 3px !important; border: none !important; } #navigator-toolbox[tabsontop="false"] #TabsToolbar{ background: transparent !important; } #appmenu-button .button-box .box-inherit:before { content: "Firefox"; } #appmenu-button .button-box .box-inherit .button-text { display: none; } |
|
1楼#
发布于:2011-01-20 00:26
不错,遮挡的问题解决了,多谢分享了。
个人还是习惯标签栏在书签下方。 |
|
2楼#
发布于:2011-01-20 00:26
怎么用了楼主的代码 最大化最小化 关闭按钮没有了呀 怎么弄出来呀? 谢谢
|
|
3楼#
发布于:2011-01-20 00:26
|
|
4楼#
发布于:2011-01-20 00:26
这代码B11好像用不了 ,用了没效果~~
|
|
5楼#
发布于:2011-01-20 00:26
|
|
6楼#
发布于:2011-01-20 00:26
我想隐藏linux下的火狐橙,
#appmenu-button{display:none !important;}无效,悲剧。 |
|
7楼#
发布于:2011-01-20 00:26
|
|
8楼#
发布于:2011-01-20 00:26
|
|
9楼#
发布于:2011-01-20 00:26
win7 Firefox 4.0 正式版 全屏后 tabs下面多了一条线..能去掉就完美了.
|
|
|
10楼#
发布于:2011-01-20 00:26
我用的Win7,换了个贴皮,最大化最小化 关闭按钮就没有,怎么办
|
|
11楼#
发布于:2011-01-20 00:26
与/*自动隐藏书签栏*/冲突, 导致出现的书签栏背景不见了..
@namespace url(http://www.mozilla.org/keymaster/gateke ... s.only.xul); @-moz-document url(chrome://browser/content/browser.xul) { #main-window:not([inFullscreen="true"]) #navigator-toolbox:not([customizing="true"]) ~ #browser { margin-top: -25px !important;/* 適宜調整 */ } #main-window:not([inFullscreen="true"]) #navigator-toolbox:not([customizing="true"]) > #PersonalToolbar { -moz-transition: max-height 0s ease-in-out .8s !important;/* 消えるときのアニメーション */ -moz-box-ordinal-group: 1000 !important; padding: 0 3px !important; position: relative !important; z-index: 100 !important; overflow-y: hidden !important; max-height: 1px !important; min-height: 1px !important; } /* #main-window[stylish-url="about:blank"] #navigator-toolbox:not([customizing="true"]) > #PersonalToolbar,*/ #main-window:not([inFullscreen="true"]) #navigator-toolbox:not([customizing="true"]):hover > #PersonalToolbar { -moz-transition: max-height 0s ease-in-out !important;/* 表示されるときのアニメーション */ max-height: 52px !important; } } |
|