Loading...

2008年1月5日星期六

firefox:全屏下自动隐藏状态栏&地址栏

这是我第一次发表的文章。
前几天看了一篇“firefox:n个扩展”的文章后兴致勃勃的装了几个扩展,个人觉得firefox的扩展真的非常好用,其中fullerscreen可以令fx达到真正的全屏浏览,不过可能你会象我一样想在全屏下保留标签栏和all in one sidebar ,下教大家一个方法:
1,安装强大的插件:stylish
2,加入一个脚本“autohide status bar in fullscreen:(这个脚本在FF3下失效)
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
#status-bar
{
visibility: visible;

}
#main-window[width="1024"][height="768"]
#status-bar {
margin-bottom: -19px !important;
}
#main-window[width="1024"][height="768"]
#status-bar:hover,
#status-bar:focus,
#status-bar:active { margin-bottom: 0px !important;}


3,再加入一个脚本“autohide nav bar in fullscreen:
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);

#main-window[width="1024"][height="768"] #navigator-toolbox{margin-top:-30px!important}

#main-window[width="1024"][height="768"]
#navigator-toolbox:hover,
#navigator-toolbox:focus,
#navigator-toolbox:active{margin-top:0px !important}
安装后,按F12全屏浏览下脚本生效
注意一下:如果你的分辨率并不是 1024X768的话,请修改代码中所有的width值和height值,第一次写的脚本,希望对大家有用。
原创文章如转载,请注明:转载自HATA菜谱

阅读全文...