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

搜索 | 用户支持

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

详细了解

Cannot resize Firefox window under 374 pixel

more options

Using Firefox 26.0, completely fresh download and install.

For various purposes I would like to be able to re-size the entire Firefox window to a width below 374 pixel, however this is not working anymore. It simply stays wider or equal to 374 pixel. Before I did the update to 26.0 this worked just fine.

Of course I can do this with web developer but I prefer to have the entire Firefox window at 200 pixel or 300 pixel width for example.

Using Firefox 26.0, completely fresh download and install. For various purposes I would like to be able to re-size the entire Firefox window to a width below 374 pixel, however this is not working anymore. It simply stays wider or equal to 374 pixel. Before I did the update to 26.0 this worked just fine. Of course I can do this with web developer but I prefer to have the entire Firefox window at 200 pixel or 300 pixel width for example.

被采纳的解决方案

Note that with the bookmarklet you will probably run into security issues as Firefox doesn't allow some page to open such a pop-up.


You can hide all toolbars in a new window and use code in userChrome.css to set a smaller min-width.

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

#main-window:not([chromehidden~="toolbar"]) {min-width:200px!important;}

See line 8:

  • chrome://browser/content/browser.css
定位到答案原位置 👍 7

所有回复 (4)

more options

Yes, this is in preparation for the Australis UI refresh, because the location bar was getting cut off at smaller widths in the new design. The temporary workaround is to use window.open() to launch a window in the size you need. See: Resize Firefox 26 to a width of less than 400px.

由jscher2000 - Support Volunteer于修改

more options

选择的解决方案

Note that with the bookmarklet you will probably run into security issues as Firefox doesn't allow some page to open such a pop-up.


You can hide all toolbars in a new window and use code in userChrome.css to set a smaller min-width.

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

#main-window:not([chromehidden~="toolbar"]) {min-width:200px!important;}

See line 8:

  • chrome://browser/content/browser.css

由cor-el于修改

more options

Since I prefer to make the customization in the "roo"t of the browser UI style I chose to edit the userChrome.css and now it works. Thank you cor-el!

jscher2000, I don't know what this Australis UI refresh is, but I highly doubt that people that resize the browser windows to under 200 px or under 300 px still need a location bar. I would more assume this is for development purposes rather than browsing, however I do respect Mozilla's decision to set a min-width.

Where can one read about these tiny little changes from version to upgraded version please? Would be great to not have to wonder next time (do I have a faulty install, virus, is it a bug, etc..) but see "ah this is going to be different and this is how I can change it to the way I like it".

more options

The release notes always link to hundreds of individual bug reports detailing changes. It's the tiny "complete list of changes" link: http://www.mozilla.org/en-US/firefox/26.0/releasenotes/

For some reason, the dynamically generated list doesn't include this particular change: 897160 – Set a minimum width for the Firefox window.

Note about the bug tracking system: it's generally not helpful to add comments to closed bugs. See: