為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

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

了解更多

How to add "underline" line under Tabs toolbar using userChrome.css file.

  • 4 回覆
  • 2 有這個問題
  • 13 次檢視
  • 最近回覆由 Vule

more options

I use Windows 10 PC with Firefox 57. I managed to put Tabs Toolbar below "Main menu/Address/Bookmark" toolbars following instruction provided in this forum. It would be nice to be able to do it because this will visually separate toolbars from the Display space.

I use Windows 10 PC with Firefox 57. I managed to put Tabs Toolbar below "Main menu/Address/Bookmark" toolbars following instruction provided in this forum. It would be nice to be able to do it because this will visually separate toolbars from the Display space.

被選擇的解決方法

Thank You, Thank you, Thank you,

It worked perfectly.

I changed line thickness to "2px".

Vule.

從原來的回覆中察看解決方案 👍 0

所有回覆 (4)

more options

Maybe use a lightweight theme to give the Navigation toolbox area a distinct background. See the Themes button in the Customize palette.

由 cor-el 於 修改

more options

I already have Light Theme selected. What I want is to add a line below Tabs Toolbar (already on the Bottom of the Toolbars) to separate them from the rest of the displayed screen.

more options

Something like this in userChrome.css?

Add code to the userChrome.css file below the default @namespace line.


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

#navigator-toolbox { border-bottom: 1px solid #000; }

You can use the button on the "Help -> Troubleshooting Information" (about:support) page to go to the current Firefox profile folder or use the about:profiles page.

  • create the chrome folder (lowercase) in the <xxxxxxxx>.default profile folder if this folder doesn't exist
  • use a plain text editor (Windows: Notepad; Mac: Textedit) to create a (new) userChrome.css file in the chrome folder (file name is case sensitive)
  • paste the code in the userChrome.css file in the editor window
  • make sure that the userChrome.css file starts with the default @namespace line
  • make sure that you select "All files" and not "Text files" when you save the file via "Save file as" in the text editor as userChrome.css.
    otherwise Windows may add a hidden .txt file extension and you end up with a not working userChrome.css.txt file
more options

選擇的解決方法

Thank You, Thank you, Thank you,

It worked perfectly.

I changed line thickness to "2px".

Vule.