搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

Edit userchrome on Firefox 26

  • 1 回覆
  • 1 有這個問題
  • 1 次檢視
  • 最近回覆由 cor-el

more options

I ran firefox -profilemanager and from there copied my profile path, then I went to that path and created a folder called "chrome", inside that folder I created a file called "userChrome.css" which contains the css bellow, unfortunately it didn't seem to work. I'm trying to hide everything to create a kiosk, also I wanted to have it to Thanks

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

#main-window[inFullscreen=true] {
    padding-top: 0px !important;
}

#navigator-toolbox[inFullscreen=true]: #PersonalToolbar,
#navigator-toolbox[inFullscreen=true]: #GBL-Toolbar,
#navigator-toolbox[inFullscreen=true]: #web-developer-toolbar,
#navigator-toolbox[inFullscreen=true]: .web-developer-toolbar {
    visibility: collapse;
}
I ran firefox -profilemanager and from there copied my profile path, then I went to that path and created a folder called "chrome", inside that folder I created a file called "userChrome.css" which contains the css bellow, unfortunately it didn't seem to work. I'm trying to hide everything to create a kiosk, also I wanted to have it to Thanks <pre><nowiki>@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul); #main-window[inFullscreen=true] { padding-top: 0px !important; } #navigator-toolbox[inFullscreen=true]: #PersonalToolbar, #navigator-toolbox[inFullscreen=true]: #GBL-Toolbar, #navigator-toolbox[inFullscreen=true]: #web-developer-toolbar, #navigator-toolbox[inFullscreen=true]: .web-developer-toolbar { visibility: collapse; }</nowiki></pre>

由 cor-el 於 修改

所有回覆 (1)

more options

You would have to use at least quotes around the attribute values and omit the appended colons.

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

#main-window[inFullscreen="true"] {
    padding-top: 0px !important;
}

#navigator-toolbox[inFullscreen="true"] #PersonalToolbar,
#navigator-toolbox[inFullscreen="true"] #GBL-Toolbar,
#navigator-toolbox[inFullscreen="true"] #web-developer-toolbar,
#navigator-toolbox[inFullscreen="true"] .web-developer-toolbar {
    visibility: collapse!important;
}