Windows 10 已于2025年10月14日停止支持。如果您正在使用 Windows 10,参见 这篇文章。

Windows 10 reached EOS (end of support) on October 14, 2025. If you are on Windows 10, see this article.

搜索 | 用户支持

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

详细了解
已存档

How do you make the X button to close tabs visible on mouse over?

Gabriel Koh

How do you make the X button to close a tab visible when you mouse over the tab? I have a lot of tabs and the X button is not always visible. I want the button to be visible when i mouse over a tab.

How do you make the X button to close a tab visible when you mouse over the tab? I have a lot of tabs and the X button is not always visible. I want the button to be visible when i mouse over a tab.

所有回复 (7)

Hi   !

When you have a lot of tabs, the closing X takes up too many pixels. You could (for now) consider this add-on :

https://addons.mozilla.org/en-US/firefox/addon/classicthemerestorer/

But would you also take a look at this article, please :

https://www.ghacks.net/2014/04/30/mozilla-removes-tab-close-button-preference-firefox/

Hi, you could instead, type about:config into the address bar, press Enter, accept the warning, scroll down to browser.tabs.tabClipWidth then right click > Modify, and change the number from 140 to something lower - try 80. Then restart Firefox.

Scribe said

Hi, you could instead, type about:config into the address bar, press Enter, accept the warning, scroll down to browser.tabs.tabClipWidth then right click > Modify, and change the number from 140 to something lower - try 80. Then restart Firefox.

Ive tried changing it to all kinds of numbers and restarted firefox each time, but did not notice anything different. I even tried 0.

Happy112 said

Hi   ! When you have a lot of tabs, the closing X takes up too many pixels. You could (for now) consider this add-on : https://addons.mozilla.org/en-US/firefox/addon/classicthemerestorer/ But would you also take a look at this article, please : https://www.ghacks.net/2014/04/30/mozilla-removes-tab-close-button-preference-firefox/

Well classic theme restorer does allow you to display the close button always, but not when you mouse over the tab. Is that possible?

Question2 said

Ive tried changing it to all kinds of numbers and restarted firefox each time, but did not notice anything different. I even tried 0.

Note that Firefox hides the close button on inactive tabs if there are enough tabs open to make them shrunk below a specific minimum.

http://kb.mozillazine.org/browser.tabs.tabClipWidth

Question2 said

Well classic theme restorer does allow you to display the close button always, but not when you mouse over the tab. Is that possible?

No,   mouse over the tab won't display the close button,   but   (as you undoubtedly already know) when you click at the end of the tab you want to close, the tab   will   close.

For now Classic Theme Restorer would be the closest thing to what you want, I'm afraid. But still : when you use many tabs, the width will decrease, which leaves little room for text. Adding a close button will take up even more room at the expense of the text.

You can middle-click a tab with the mouse scroll wheel to close the tab. I prefer this to avoid closing a tab accidentally when you click a tab to select the tab and it gives the most space for the tab label.