X
點擊此處開啟此網站的行動版。

技術支援討論區

Firefox 4.0 Beta 2: browser.tabs.tabMinWidth doesn't seem to work

已張貼

I am using Firefox 4.0 Beta 2 on Vista Ultimate and the browser.tabs.tabMinWidth doesn't seem to work (have set it to 150). I've restarted the browser since setting this configuration, but that hasn't had any effect.

Has this setting been deprecated/removed in Firefox 4.0?

Firefox was started with command: firefox.exe -no-remote -P FF-4.0-B2

I am using Firefox 4.0 Beta 2 on Vista Ultimate and the browser.tabs.tabMinWidth doesn't seem to work (have set it to 150). I've restarted the browser since setting this configuration, but that hasn't had any effect. Has this setting been deprecated/removed in Firefox 4.0? Firefox was started with command: firefox.exe -no-remote -P FF-4.0-B2

額外的系統細節

已安裝的外掛程式

  • -Flock Update
  • Shockwave Flash 10.1 r53
  • GEPlugin
  • Picasa plugin
  • Windows Presentation Foundation (WPF) plug-in for Mozilla browsers
  • Google Updater pluginhttp://pack.google.com/
  • Google Update
  • Next Generation Java Plug-in 1.6.0_17 for Mozilla browsers
  • Adobe PDF Plug-In For Firefox and Netscape "9.3.3"

應用程式

  • User Agent: Mozilla/5.0 (Windows; Windows NT 6.0; WOW64; rv:2.0b2) Gecko/20100720 Firefox/4.0b2

更多資訊

*-Flock Update
*Shockwave Flash 10.1 r53
*GEPlugin
*Picasa plugin
*Windows Presentation Foundation (WPF) plug-in for Mozilla browsers
*Google Updater pluginhttp://pack.google.com/
*Google Update
*Next Generation Java Plug-in 1.6.0_17 for Mozilla browsers
*Adobe PDF Plug-In For Firefox and Netscape "9.3.3"

cor-el
  • Top 10 Contributor
  • Moderator
17690 個解決方法 160050 個答案

有幫助的回覆

Yes, those prefs no longer work.
You need to use CSS code in userChrome.css to accomplish that.

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

.tabbrowser-tab:not([pinned]) {max-width:250px!important; min-width:100px!important;}
.tabbrowser-tab:not([fadein]) {max-width:1px!important; min-width:1px!important;}


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

See also Custom Tab Width: https://addons.mozilla.org/firefox/addon/221515/


Bug 577497 – browser ignoring tabMinWidth and tabClipWidth
Bug 574654 – Remove browser.tabs.tabMinWidth and browser.tabs.tabMaxWidth in favor of CSS
Yes, those prefs no longer work.<br /> You need to use CSS code in userChrome.css to accomplish that. <pre><nowiki>@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */ .tabbrowser-tab:not([pinned]) {max-width:250px!important; min-width:100px!important;} .tabbrowser-tab:not([fadein]) {max-width:1px!important; min-width:1px!important;} </nowiki></pre> Add code to [http://kb.mozillazine.org/UserChrome.css userChrome.css] below the @namespace line.<br /> See http://kb.mozillazine.org/Editing_configuration#How_to_edit_configuration_files See also Custom Tab Width: https://addons.mozilla.org/firefox/addon/221515/ ---- [https://bugzilla.mozilla.org/show_bug.cgi?id=577497 Bug 577497] – browser ignoring tabMinWidth and tabClipWidth [https://bugzilla.mozilla.org/show_bug.cgi?id=574654 Bug 574654] – Remove browser.tabs.tabMinWidth and browser.tabs.tabMaxWidth in favor of CSS

由 cor-el 於 修改