為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

[SOLVED] How can I increase the height of tabs?

  • 8 回覆
  • 3 有這個問題
  • 4 次檢視
  • 最近回覆由 ender21

more options

I was using a theme which increased the height of tabs. Unfortunately, the theme conflicted with tab menu setting using the TabMixPlus extension. I am stuck with the default theme or others which do not increase the tab height. I have tried a variety of codes in userChrome.css to no avail. I am presently using the default theme with Firefox 20.0.1 (a Linux operating system).

I was using a theme which increased the height of tabs. Unfortunately, the theme conflicted with tab menu setting using the TabMixPlus extension. I am stuck with the default theme or others which do not increase the tab height. I have tried a variety of codes in userChrome.css to no avail. I am presently using the default theme with Firefox 20.0.1 (a Linux operating system).

由 ender21 於 修改

被選擇的解決方法

You should be able to do this via this code in userChrome.css

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

#TabsToolbar { height: 35px !important; }

The customization files userChrome.css (interface) and userContent.css (websites) are located in the chrome folder in the Firefox profile folder.

從原來的回覆中察看解決方案 👍 2

所有回覆 (8)

more options

選擇的解決方法

You should be able to do this via this code in userChrome.css

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

#TabsToolbar { height: 35px !important; }

The customization files userChrome.css (interface) and userContent.css (websites) are located in the chrome folder in the Firefox profile folder.

more options

Thank you. I have had a userChrome.css file for several years. The name-space line is correct. 35px seemed to make no difference so I kept increasing it and now it reads:

/* height of tab bar */

  1. TabsToolbar { height: 100px; }

There is no difference in height. Could something be interfering with the code?

由 ender21 於 修改

more options

Did you try to use the !important; flag?

#TabsToolbar { height: 100px !important; }

That flag is necessary to override a current height setting for the tab bar.


Start Firefox in Safe Mode to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).

  • Do NOT click the Reset button on the Safe Mode start window or otherwise make changes.
more options

It took me an hour but I found a way to increase the height of the tabs without the need to increase the font size. You can also increase the font size of the tabs without increasing other font sizes.

Open "C:\Users\[USERNAME]\AppData\Roaming\Mozilla\Firefox\Profiles\[RANDOM STRING].default" and create a new folder called "Chrome", next open Notepad and paste the following code into it.

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

.tabbrowser-tabs *|tab {

   font-size: 12px !important;
   height:    50px !important;
   min-width: 8px !important  }

Save this in the new folder "Chrome" as "userChrome.css".

You can see the height is set to 50px which is probably bigger than you want so you can change the values to what you like but you'll need to restart Firefox each time you make a change.
more options

Thanks. cor-el, I forgot to use '!important'.

GeekInside, thanks also, I have tried code like that.

I will try starting in safe mode with various codes. Tomorrow though.

由 ender21 於 修改

more options

Note that the name of the folder is chrome (case sensitive).

Did you check if the code works with all extensions disabled?

(Safe Mode disable userChrome.css)

more options

Thank you both very much for your help. Disabling all add-ons made no difference. However, removing certain code in userChrome.css relating to the add-on bar fixed the problem.

Both answers worked. I am unable for some reason to mark GeekInside's answer as helpful.

由 ender21 於 修改

more options

After several more experiments I have established that the tab bar code is compatible with the code for the add-on bar.

由 ender21 於 修改