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

搜索 | 用户支持

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

详细了解

I want to make the adress bar smaller so that my bookmark bar can show more than three icons when placed on the same row.

  • 8 个回答
  • 3 人有此问题
  • 1 次查看
  • 最后回复者为 cor-el

more options

I want to have about five to ten bookmark icons in the same row as the search and address bar. So i use Customize... and I put the bookmark bar on the same line. I leave the "Name"-textbox in every bookmark blank so that only the icons appear.

However, only two icons appear and the rest are displayed in a drop down menu from an arrow you click.

I don't need the address bar to take 70% of the screen. I don't want the bookmark bar to use an extra row. I just want to have five to ten bookmark icons next to my address and search bar. Is this possible?

I want to have about five to ten bookmark icons in the same row as the search and address bar. So i use Customize... and I put the bookmark bar on the same line. I leave the "Name"-textbox in every bookmark blank so that only the icons appear. However, only two icons appear and the rest are displayed in a drop down menu from an arrow you click. I don't need the address bar to take 70% of the screen. I don't want the bookmark bar to use an extra row. I just want to have five to ten bookmark icons next to my address and search bar. Is this possible?

被采纳的解决方案

The location bar and the search bar both have a flex attribute that makes then take all available space.
The Bookmarks Toolbar folder items probably have a minimum width that can just take one bookmark with its maximum label length (in your case two icons).

You can set the max-width of the location bar and the search bar to force a maximum width of both bars. Setting a minimum width for the Bookmarks Toolbar items will probably work as well.

Add code to the userChrome.css file below the default @namespace line (adjust the width to suit your needs).

The customization files userChrome.css (interface) and userContent.css (websites) are located in the chrome folder in the user profile folder.


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

#urlbar-container { max-width: 400px !important; }
#search-container { max-width: 200px !important; }

You can use this code to set a minimum width for the bookmark toolbar items if you want to experiment with that.
You may need to set a max-width as well.

#personal-bookmarks { min-width: 200px !important; }
定位到答案原位置 👍 1

所有回复 (8)

more options

选择的解决方案

The location bar and the search bar both have a flex attribute that makes then take all available space.
The Bookmarks Toolbar folder items probably have a minimum width that can just take one bookmark with its maximum label length (in your case two icons).

You can set the max-width of the location bar and the search bar to force a maximum width of both bars. Setting a minimum width for the Bookmarks Toolbar items will probably work as well.

Add code to the userChrome.css file below the default @namespace line (adjust the width to suit your needs).

The customization files userChrome.css (interface) and userContent.css (websites) are located in the chrome folder in the user profile folder.


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

#urlbar-container { max-width: 400px !important; }
#search-container { max-width: 200px !important; }

You can use this code to set a minimum width for the bookmark toolbar items if you want to experiment with that.
You may need to set a max-width as well.

#personal-bookmarks { min-width: 200px !important; }
more options

This solved the problem, thank you!

more options

Hey again! I just installed the latest version of Firefox since I have a new computer.

I tried to do this again but failed. I can't find the chrome folder. I googled some and found out you could create it yourself in the "Default profile". I can't really find that profile. I'm using Firefox 17.0.1.

Also inside AppData there are three folders: Local, Locallow and Roaming. There are Firefox folders in all of these. I tried making a chrome folder just inside the randomhashtag.default folder but it didn't seem to work.

EDIT: I was mistaken, I had NOT made a chrome-folder in the Roaming subfolders. It works if you put the Chrome-folder in the folder %APPDATA%/Roaming/Mozilla/hashtag.default

Hopefully my mistake will bring some clarity to other searchers.

Any idea on where to put the userChrome.css and the chrome folder?

由Carlsbad于修改

more options

You can use this button to go to the Firefox profile folder and create the chrome folder in that folder.

  • Help > Troubleshooting Information > Profile Directory: Show Folder
more options

I have a side question, not sure if I'm to ask it here or make a new question.

But when I have changed the width of the bars.. my "Save passwords" checkbox becomes unavailable and firefox doesn't keep me logged in to any websites. If I close the tab, I get logged out. I realize this is a safety measure but is there anyway to have custum sized bars AND be able to save passwords?

more options

What do you mean with "Save passwords" checkbox?

Is that box provided by an extension?

Can you attach a screenshot?

Use a compressed image type like PNG or JPG to save the screenshot.


Websites remembering you and automatically log you on is stored in a cookie.

  • Create an allow cookie exception (Tools > Options > Privacy > Cookies: Exceptions) to keep such a cookie, especially for secure websites and if cookies expire when Firefox is closed.

Make sure that you do not run Firefox in Private Browsing mode.

Do not use Clear Recent History to clear the "Cookies" and the "Site Preferences"

Clearing "Site Preferences" clears all exceptions for cookies, images, pop-up windows, software installation, and passwords.

more options

Hi, it was the private browsing option that made the save password setting box unavailable. Somehow I got the Swedish version installed and it just say "Don't save history" instead of private browsing so I thought passwords would still be savable.

Thanks alot for your help! I am very greatful.

more options

You're welcome