Windows 10 reached EOS (end of support) on October 14, 2025. If you are on Windows 10, see this article.

搜尋 Mozilla 技術支援網站

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

了解更多

What is the CSS I need to override the background of the search selection button?

  • 1 回覆
  • 0 有這個問題
  • 最近回覆由 OneMoreName
  • 已解決

Firefox updated to 151.0 last yesterday and now the background of the search selection box has changed color to white from its earlier setting. I have tried a bunch of things but cannot find the CSS needed to restore it to what it was (it was overridden with an image). The image below shows the new, white, version, and what I am trying to do is restore it so that it is overridden with the same background image as the rest of the header. What is the rule needed to override the background of this new box (the box with the colorful "G" and downward caret)?

Firefox updated to 151.0 last yesterday and now the background of the search selection box has changed color to white from its earlier setting. I have tried a bunch of things but cannot find the CSS needed to restore it to what it was (it was overridden with an image). The image below shows the new, white, version, and what I am trying to do is restore it so that it is overridden with the same background image as the rest of the header. What is the rule needed to override the background of this new box (the box with the colorful "G" and downward caret)?
附加的畫面擷圖

被選擇的解決方法

Finally found it.

 .searchmode-switcher
   {
     --button-background-color: none !important;
   }
從原來的回覆中察看解決方案 👍 0

所有回覆 (1)

選擇的解決方法

Finally found it.

 .searchmode-switcher
   {
     --button-background-color: none !important;
   }
問個問題

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