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

搜索 | 用户支持

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

详细了解

How can I make the search bar wider?

  • 3 个回答
  • 4 人有此问题
  • 4 次查看
  • 最后回复者为 the-edmeister

more options

My search and address box are on the same line. But the search bar is just long enough to write in maybe three words.I'd like to extend it. Taking space from the address bar is fine because 'it' takes up half the browser length. Thanks.

This happened

Every time Firefox opened

== I placed theaddress and search bar on the same line as the menu.

My search and address box are on the same line. But the search bar is just long enough to write in maybe three words.I'd like to extend it. Taking space from the address bar is fine because 'it' takes up half the browser length. Thanks. == This happened == Every time Firefox opened == I placed theaddress and search bar on the same line as the menu.

所有回复 (3)

more options

You lose the resize feature for the URL bar / Search bar when you move those items off the Navigation bar.
You'll have to use some userChrome.css code to make the Search container larger.

http://kb.mozillazine.org/UserChrome.css

See how this works for you - the 400px is the width, change to suit your needs.

#searchbar, .searchbar-textbox {
 max-width: 400px !important;
}

由cor-el于修改

more options

'You lose the resize feature for the URL bar / Search bar when you move those...'

Oh so that's why. That explains it. I just moved it back to the Bookmark bar.

Thank you edmeister.

more options

If the location bar and search bar are next to each other then you can place the mouse between the location bar and search bar to resize both bars. That only work if there is nothing between the two.

You can set a min-width for the search bar to force a larger search bar:

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

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


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

由cor-el于修改