MozTW 討論區
https://forum.moztw.org/

使用Stylish隐藏工具栏代码可否保留Navigation toolbar呢?
https://forum.moztw.org/viewtopic.php?f=11&t=19794
1 頁 (共 1 頁)

發表人:  vvg [ 2007-07-22, 13:33 ]
文章主題 :  使用Stylish隐藏工具栏代码可否保留Navigation toolbar呢?

使用Stylish隐藏工具栏代码可否保留Navigation toolbar呢?
代碼:
/* --- begin example --- *//*

//this will hide a toolbar
#toolbar-id {
  display: none;
}

//this will show the toolbar if you move the cursor to navigator toolbox
#navigator-toolbox:hover > #toolbar-id {
  display: -moz-box;
}

*//*--- end example --- */


/* The following CSS code will hide navigation toolbar and personal toolbar
and show them again if you move the cursor to menubar */

/* begin css */

@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);

#nav-bar, #PersonalToolbar {
  display: none;
}

#navigator-toolbox:hover > #nav-bar,
#navigator-toolbox:hover > #PersonalToolbar {
  display: -moz-box;
}

/* end css */

發表人:  hof [ 2007-07-23, 08:51 ]
文章主題 : 

換成下列的 CSS 就可以
代碼:
/* --- begin example --- *//*

//this will hide a toolbar
#toolbar-id {
  display: none;
}

//this will show the toolbar if you move the cursor to navigator toolbox
#navigator-toolbox:hover > #toolbar-id {
  display: -moz-box;
}

*//*--- end example --- */


/* The following CSS code will hide navigation toolbar and personal toolbar
and show them again if you move the cursor to menubar */

/* begin css */

@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);

#PersonalToolbar {
  display: none;
}

#navigator-toolbox:hover > #nav-bar,
#navigator-toolbox:hover > #PersonalToolbar {
  display: -moz-box;
}

/* end css */

只是我不清楚為什麼要用 Stylish 來達成 Fx 已內建的功能?

發表人:  xacid [ 2007-07-23, 12:44 ]
文章主題 : 

hof 寫:
只是我不清楚為什麼要用 Stylish 來達成 Fx 已內建的功能?

大概是要讓滑鼠移過才顯示,平常節省螢幕空間吧。

1 頁 (共 1 頁) 所有顯示的時間為 UTC + 8 小時
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/