搜尋 Mozilla 技術支援網站

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

Learn More

my selected theme is only showing on the first page and goes to a white page on new tabs

  • 2 回覆
  • 0 有這個問題
  • 4 次檢視
  • 最近回覆由 cor-el

more options

can you tell me how to show my custom theme i selected to show on all my tabs?

can you tell me how to show my custom theme i selected to show on all my tabs?

所有回覆 (2)

more options

If this is about a userContent.css theme, make sure it targets about:newtab in addition to about:home.

@-moz-document url(about:home), url(about:newtab) {
  body {
    --newtab-background-color: red !important;
  }
}
more options

If you use an image, use this in userContent.css in the chrome folder in the Firefox profile folder.

@-moz-document url(about:home), url(about:newtab) {
  body {background: url("wallpaper.jpg") center/cover no-repeat fixed !important;}
}

More info about userChrome.css/userContent.css in case you are not familiar: