搜索 | 用户支持

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

详细了解

No underline for an e10s tab

  • 6 个回答
  • 22 人有此问题
  • 1 次查看
  • 最后回复者为 beta990

more options

Running the latest FireFox Nightly: Getting underlines on tabs, but can't find option to disable/hide. Is it possible to disable the underline on tabs?

Thanks!

Running the latest FireFox Nightly: Getting underlines on tabs, but can't find option to disable/hide. Is it possible to disable the underline on tabs? Thanks!

被采纳的解决方案

You can use the DOM Inspector to check what rules are applied to e10s tabs.

You can use this button to go to the currently used Firefox profile folder:

  • Help > Troubleshooting Information > Profile Directory: Show Folder (Linux: Open Directory; Mac: Show in Finder)
  • Create the chrome folder (lowercase) in the <xxxxxxxx>.default profile folder if this folder doesn't exist
  • Use a plain text editor to create the userChrome.css file in the chrome folder (file name is case sensitive)
  • Paste the code in the userChrome.css file in the editor window
  • Make sure that the userChrome.css file starts with the default @namespace line
定位到答案原位置 👍 2

所有回复 (6)

more options

That is standard if you are using e10s tabs to distinguish them from normal tabs. The Private Tab extension does the same with Private Browsing mode tabs.

See also this olde blog:

more options

Thanks for your reply. :) I understand why the underlines are their, but was hoping the tab underline could be removed from the tab.

Is this possible?

more options

See:

  • chrome://browser/skin/browser.css
.tabbrowser-tab[remote] {
  text-decoration: underline;
}

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


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

.tabbrowser-tab[remote] {
  text-decoration: none !important;
}

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

more options

Thanks again for looking at this issue. Unfortunately the steps above doesn't seems to have an effect, the underlines are still under the tabs title. I haven't tried hacking the main css file itself this is my css location: /home/user/.mozilla/firefox/<id>.default/chrome/userChrome.css (Linux)

Is this working for you? Note: I have a theme installed, but this should overrule the theme right?

Thanks again!

more options

选择的解决方案

You can use the DOM Inspector to check what rules are applied to e10s tabs.

You can use this button to go to the currently used Firefox profile folder:

  • Help > Troubleshooting Information > Profile Directory: Show Folder (Linux: Open Directory; Mac: Show in Finder)
  • Create the chrome folder (lowercase) in the <xxxxxxxx>.default profile folder if this folder doesn't exist
  • Use a plain text editor to create the userChrome.css file in the chrome folder (file name is case sensitive)
  • Paste the code in the userChrome.css file in the editor window
  • Make sure that the userChrome.css file starts with the default @namespace line
more options

Thanks for all the help! Finaly solved the issue, by using this code: @namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);

.tabbrowser-tab[remote] { text-decoration: none !important; }

It seems when using @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); the CSS isn't loaded. When removing the quotes, it worked without any problems. Don't know if this is correct? Anyway it works now. :D

Thanks again for all the help and the quick responses. :)