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

搜尋 Mozilla 技術支援網站

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

了解更多

How to get the 'x' close button by hovering over unselected tabs.

  • 14 回覆
  • 9 有這個問題
  • 3 次檢視
  • 最近回覆由 cor-el

more options

I miss being able to close tabs without having to select them first. Is there a way to get the old functionality back of having the 'x' close button appear with mouse-over?

I miss being able to close tabs without having to select them first. Is there a way to get the old functionality back of having the 'x' close button appear with mouse-over?

被選擇的解決方法

You could try right-clicking which gives you a menu that lists a 'close tab' option.

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

所有回覆 (14)

more options

By default the Close buttons appear on all tabs.

  1. Type about:config into the address bar and press Enter.
  2. Press the big button to bypass the warning.
  3. In the search bar, paste browser.tabs.closeButtons
  4. In the search results, double-click browser.tabs.closeButtons and set its value to 1

If you want to hide the Close button on inactive tabs and show it only on mouseover,
1. Install the Stylish add-on.

2. Open the Add-ons Manager, User Styles category and click the Write a New Style link at the top.
3. Paste the following in the style editor box and click the Save button.


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

.tabbrowser-tab:not([selected]) .tab-close-button {
  visibility: hidden !important
}

.tabbrowser-tab:not([selected]):hover .tab-close-button {
  visibility: visible !important
}

If I'm not mistaken, this is also an option in the Tab Mix Plus add-on.

more options

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

more options

選擇的解決方法

You could try right-clicking which gives you a menu that lists a 'close tab' option.

more options

The easiest way to close a tab is to middle-click the tab with the mouse scroll wheel.

more options

Thanks for all your help, everyone!

more options

In about:config change the value of browser.tabs.tabClipWidth to 50.

more options

You said by default the close button appears on all tabs. Well, now it doesn't. It's been moved to one singular close button on the right that does nothing but slow the work process down.

How do I get a close button to appear on each tab again?

more options

Sounds that the browser.tabs.closeButtons pref has been changed to 3, see:

more options

Thank you for your reply.

However, I did the about:config thing, and the value for Browser.tabs.closeButtons was already set on 1, which is the default, which should display a button on each tab. I've enclosed a screen shot.

I don't know why this went sideways. FF asked for an update a couple of nights ago, so I let it do the update and then shut it down, because I was done for the night. When I turned it on the next day, that's when the problem appeared, and I hate this browser more and more every day it stays this way.

What else can I try?

more options

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

  • Do NOT click the Reset button on the Safe Mode start window.
more options

Thank you so much for showing me how to troubleshoot this.

The problem was the "Hide Tab Bar With One Tab 1.2beta" extension. I disabled that, but now I have that annoying single tab when it's the only one open.

Is there a way to resolve that, please?

more options

Install the latest update (beta 3) of the extension.

more options

You are an absolute genius! Everything is working perfectly again. Thank you so much for all your time today!

I'm back in love with FireFox!