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

搜索 | 用户支持

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

详细了解

I am trying to reduce the length of the google navigation & search boxes without any succuss. This has been asked numerious times on the site but no answer fixes the problem. I can change the size by using the line that seperates the two boxes but I only

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

more options

I added a personna 6/25/10, wanted to shorten the google navigation & search bars to see it but can't. Have re-installed the google tool bar, have selected the firefox tool bar version as my default and can then change the width but when one box gets shorter the other gets longer still filling the width of the screen. Customize tool bar doesn't give any options to shorten the tool bar width, I'm at a total loss. Would love suggestions if you've successfully fixed this.

This happened

Every time Firefox opened

== 6-25-10

I added a personna 6/25/10, wanted to shorten the google navigation & search bars to see it but can't. Have re-installed the google tool bar, have selected the firefox tool bar version as my default and can then change the width but when one box gets shorter the other gets longer still filling the width of the screen. Customize tool bar doesn't give any options to shorten the tool bar width, I'm at a total loss. Would love suggestions if you've successfully fixed this. == This happened == Every time Firefox opened == 6-25-10

被采纳的解决方案

The location bar and search bar have a flex property and take all available space. You can only change the relative size of both with that resizer between the two bars. You can only do that by adding a lot of Space elements in the View > Toolbars > Customize window.

You can set a fixed width by setting the min-width and max-width to the same value.

Add code to userChrome.css below the @namespace line. See http://kb.mozillazine.org/Editing_configuration#How_to_edit_configuration_files

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

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


You can chose your own values as long as the min-width and max-width for each bar have the same value.

定位到答案原位置 👍 8

所有回复 (6)

more options

选择的解决方案

The location bar and search bar have a flex property and take all available space. You can only change the relative size of both with that resizer between the two bars. You can only do that by adding a lot of Space elements in the View > Toolbars > Customize window.

You can set a fixed width by setting the min-width and max-width to the same value.

Add code to userChrome.css below the @namespace line. See http://kb.mozillazine.org/Editing_configuration#How_to_edit_configuration_files

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

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


You can chose your own values as long as the min-width and max-width for each bar have the same value.

由cor-el于修改

more options

Thank You!!!!! The adding Space worked. Yes, it did take lots of it but it was the fix. I'm sure the code thing would work better, but it's too technical for me. Thanks Again!

more options

Resizing the Search bar

You can increase or decrease the size of the Search bar, by placing the pointer to the left of the Search bar, until the pointer turns into a two-ended arrow. Click and drag the two-ended arrow to the left or right to increase or decrease the size of the Search bar.

https://support.mozilla.com/en-US/kb/Search+bar?s=change+search+bar+size&...

由lindharma于修改

more options
You can increase or decrease the size of the Search bar, by placing the pointer to the left of the Search bar, until the pointer turns into a two-ended arrow. Click and drag the two-ended arrow to the left or right to increase or decrease the size of the Search bar.

That will only change the relative width of the two bars.
What the OP wants is to shorten the bars to see more of the persona at the right side of the screen and that can only be done by setting a (maximum) width for the two bars.

more options

You included a code, however I'm not sure how to use it since I needed to create a userchrome.css file. The mozilla guide told me to create the chrome folder and a text file for userchrome.css. Beyond that I do not know what else to do other than paste in the line you've written. It would be great if you could reply, thank you.

more options

You can use the ChromEdit Plus extension to make it easier to create the file userChrome.css.