搜尋 Mozilla 技術支援網站

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

Learn More

Changing background color of search box and quick links in new tab

  • 4 回覆
  • 0 有這個問題
  • 72 次檢視
  • 最近回覆由 aidantomcy

more options

How do I change the background color of the search box and quick links in a new tab? I'm using Firefox color.

How do I change the background color of the search box and quick links in a new tab? I'm using Firefox color.

被選擇的解決方法

Thank you so much!

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

所有回覆 (4)

more options

Themes can change this with ntp_card_background but it is not exposed by Firefox Color.

Another way is with userContent.css:

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

}

有幫助嗎?

more options

So how do I change it? I'm not planning on publishing a theme (I'm just doing this to change the appearance of Firefox for myself). I tried poking around in the CSS and changing the variable works fine. How do I make it permanent?

由 aidantomcy 於 修改

有幫助嗎?

more options

Follow the same procedure here but name the file userContent.css instead of userChrome.css.

有幫助嗎?

more options

選擇的解決方法

Thank you so much!

有幫助嗎?

問個問題

如果您還沒有帳號,您必須先登入帳號 來回覆文章。還沒有帳號的話,只能發問新問題