搜尋 Mozilla 技術支援網站

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

了解更多

Closing the last tab.

  • 7 回覆
  • 27 有這個問題
  • 6 次檢視
  • 最近回覆由 Roedy Green

more options

I would like to be able to close the last tab and also to close all tabs. There two reasons I want to do this: 1. I am finished with the tab, and I want it to go away so it won't distract me. 2. There is something on the tab I don't want other people to see. I want it to go away rapidly without having to shut down Firefox entirely along with that delay. Every other program I use lets me close the last tab.

I would like to be able to close the last tab and also to close all tabs. There two reasons I want to do this: 1. I am finished with the tab, and I want it to go away so it won't distract me. 2. There is something on the tab I don't want other people to see. I want it to go away rapidly without having to shut down Firefox entirely along with that delay. Every other program I use lets me close the last tab.

所有回覆 (7)

more options

The Last Tab Close Button add-on will add a close tab button to the last tab - https://addons.mozilla.org/firefox/addon/last-tab-close-button/

The Close All Tabs (Reloaded) add-on gives you the option to add a toolbar button to close all tabs - https://addons.mozilla.org/firefox/addon/close-all-tabs-reloaded/

more options

Set the pref browser.tabs.closeWindowWithLastTab to false on the about:config page to prevent closing the last tab from closing the browser.

See http://kb.mozillazine.org/about%3Aconfig

more options

The setting is already true. But it is not letting me close the tab.

more options

You can close that last tab with Ctrl + W or with a middle-click on that tab.

You can set the the pref browser.tabs.closeButtons to 3 to get one close button at the far right end of the tab bar.


Add code to userChrome.css below the @namespace line.

See http://userstyles.org/styles/12101 : Show Close Button On Last Tab

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

/* Show Close Button On Last Tab */
.tabbrowser-tabs[closebuttons="alltabs"] > .tabbrowser-tab > .tab-close-button {
 display: -moz-box !important;
}
.tabbrowser-tabs:not([closebuttons="noclose"]):not([closebuttons="closeatend"]) > .tabbrowser-tab[selected="true"] > .tab-close-button {
 display: -moz-box !important;
}
more options

I followed everyone's advice, and the sum total of it now lets me close the last tab, and close all tabs with a big red X on the right next to the cool-iris button.

One plugin said I had to configure something afterwards. I could find nothing in Firefox dialogs to configure it on.

I think such plugins should not be necessary. That is the way FireFox should behave by default.

more options

Under "Tools" GOTO: TabMixPlus Options.

              Click on "Events"
              Click on "Tab Closing"
              GOTO: "Closing Current Tab"  at bottom.
                  SEE:  "When closing current tab , focus: (in box)
         
         CHOOSE:  “last tab”  (in box)

CLICK: "Apply" CLICK: "Close"

When I did the above, my last tab on the right now had the X on it so that I could now close that tab. And if I close that tab, the tab next to it becomes the last tab and also has the X on it and can be closed at any time, etc.

Hope this helps.

more options

I upgraded to Firefox 4.0. It lets me close the last tab without any fuss. It does not have a close-all, but I can do a close-others then close the last tab. The add-ons no longer work.