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

搜索 | 用户支持

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

详细了解

How to change size of url & Google search boxes?

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

more options

I was able to change the size of the URL box, but not the Google Search box. By doing so, I could display more extensions in the FF window.

I was able to change the size of the URL box, but not the Google Search box. By doing so, I could display more extensions in the FF window.

被采纳的解决方案

Can you attach a screenshot to show what you try to achieve?

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

Note that you would have to set a fixed width for both the location bar and search bar to disable their flex attributes.

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

The customization files userChrome.css (user interface) and userContent.css (websites) are located in the chrome folder in the Firefox 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; }
定位到答案原位置 👍 2

所有回复 (3)

more options

Hello, Have you tried Firefox's zoom feature? This will help increase the size of web pages.

  • To make things bigger, press Ctrl and &#43 at the same time.
  • To make things smaller, press Ctrl and - at the same time.
  • To reset the size back to normal, press Ctrl and 0 at the same time.

You can also use the NoSquint. add-on to change the default zoom level for all websites at once. After setting your global zoom level, you can still fine-tune the zoom on individual sites.

Using NoSquint:

  1. After installing NoSquint, make sure you have the Add-on Bar displayed:
    • Right-click the new tab button ("+") or a blank area of the tab bar to the right of it and choose Add-on Bar from the shortcut menu.
  2. Click the % on the Add-on Bar to call up site preferences, then click the Global Settings button, then the Zooming tab.
    • You can experiment with sizes larger than 125%, but it's not recommended that you go higher than 150% unless you have a large high-resolution monitor.

If there are particular sites that still present a problem, feel free to post their URLs.

Please let us know if this helped you!

Thank you.

more options

The URL bar will resize itself to fit whatever space is available. If you want to limit the size of the search bar, you can create a userChrome.css file in a chrome subdirectory in Firefox's profile, and put this code into it:

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

#search-container {
-moz-appearance: none !important;
min-width: 180px !important;
max-width: 180px !important;}

You can put more extension buttons on the Add-on Bar, so they do not have to be in the navigation toolbar.

more options

选择的解决方案

Can you attach a screenshot to show what you try to achieve?

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

Note that you would have to set a fixed width for both the location bar and search bar to disable their flex attributes.

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

The customization files userChrome.css (user interface) and userContent.css (websites) are located in the chrome folder in the Firefox 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; }