Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Menu dispaly

  • 4 个回答
  • 2 人有此问题
  • 10 次查看
  • 最后回复者为 HarryOsborn

more options

Design Flaw is impacting adversely. All menus, bookmarks etc There is a huge excessive amount of space between all menu items in a list. That includes all the Menu bar items, File, Edit ,View, History, Bookmarks, Tools, Help and the Menu app icon. Bookmarks have huge clear blank spacing between items and is dreadful to use with all the scrolling. Scrolling is now being forced on users when it is unncessary. I need this fixed ASAP or else Firefox will be trashed! (It already is) Firefox version 91

Design Flaw is impacting adversely. All menus, bookmarks etc There is a huge excessive amount of space between all menu items in a list. That includes all the Menu bar items, File, Edit ,View, History, Bookmarks, Tools, Help and the Menu app icon. Bookmarks have huge clear blank spacing between items and is dreadful to use with all the scrolling. Scrolling is now being forced on users when it is unncessary. I need this fixed ASAP or else Firefox will be trashed! (It already is) Firefox version 91

所有回复 (4)

more options

You can use code in userChrome.css to modify the menu spacing.


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 */

menupopup > menuitem, menupopup > menu {padding-top: 2px !important; padding-bottom: 2px !important;}
*|*:root {--arrowpanel-menuitem-padding: 2px 8px !important;}

It is not that difficult to create userChrome.css if you have never used it.

The first step is to open the "Help -> Troubleshooting Information" page and find the button to access the profile folder.

You can find this button under the "Application Basics" section as "Profile Folder -> Open Folder". If you click this button then you open the profile folder in the Windows File Explorer. You need to create a folder with the name chrome in this folder (name is all lowercase). In the chrome folder you need to create a plain text file with the name userChrome.css (name is case sensitive). In this userChrome.css text file you paste the text posted. On Mac you can use the TextEdit utility to create the userChrome.css file as a plain text file.

In Windows saving the file is usually the only time things get more complicated because Windows can silently add a .txt file extension and you end up with a file named userChrome.css.txt. To avoid this you need to make sure to select "All files" in the dialog to save the file in the text editor using "Save File as".

You need to close (Quit/Exit) and restart Firefox when you create or modify the userChrome.css file.

See also:

In Firefox 69 and later you need to set this pref to true on the about:config page to enable userChrome.css and userContent.css in the chrome folder.

  • toolkit.legacyUserProfileCustomizations.stylesheets = true
more options

Above did not solve my problem. No changes appeared.

more options

Did you make sure that userChrome.css is in the chrome folder (all lowercase) in the Firefox profile folder and that the file is a " Cascading Style Sheet" and not a TEXT file ?


Can you add screenshots that show the location and content of userChrome.css ?

Were you already using userChrome.css ?

more options

userChrome.css @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */ menupopup > menuitem, menupopup > menu {padding-top: 2px !important; padding-bottom: 2px !important;}

  • |*:root {--arrowpanel-menuitem-padding: 2px 8px !important;}

in folder named chrome. I copied and pasted file name.