搜尋 Mozilla 技術支援網站

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

Learn More

Autofill background color

  • 1 回覆
  • 1 有這個問題
  • 3 次檢視
  • 最近回覆由 cor-el

more options

I have a dark themed website with light colored lable that is positioned inside the input field and having the autofill to autocolor the input's background yellow makes things look horrendous. I've tried the following CSS:

``` input:autofill, input:-moz-autofill, input:-webkit-autofill {

   filter: none !important;
   background: rgba(0, 98, 155, 0.35) !important;

} ```

On top of that, I tried changing that for myself in about:config changing ui.-moz-autofill-background to false, but after clearing browser cache and doing a hard-refresh, the yellow autofill background color persists.

That would be a personal fix, but I would rather firefox not murder the theme of my site for others and let me have control of what color the autofill background color should be (if I even want there to be a difference in colors). Am I missing something? I don't simply want to turn that off for myself (although I still want to, but it didn't work). I want to change it for everyone visiting my site. (Like I'm able to change the colors of link or border colors or background colors of other elements).

I have a dark themed website with light colored lable that is positioned inside the input field and having the autofill to autocolor the input's background yellow makes things look horrendous. I've tried the following CSS: ``` input:autofill, input:-moz-autofill, input:-webkit-autofill { filter: none !important; background: rgba(0, 98, 155, 0.35) !important; } ``` On top of that, I tried changing that for myself in '''about:config''' changing '''ui.-moz-autofill-background''' to '''false''', but after clearing browser cache and doing a hard-refresh, the yellow autofill background color persists. That would be a personal fix, but I would rather firefox not murder the theme of my site for others and let me have control of what color the autofill background color should be (if I even want there to be a difference in colors). Am I missing something? I don't simply want to turn that off for myself (although I still want to, but it didn't work). I want to change it for everyone visiting my site. (Like I'm able to change the colors of link or border colors or background colors of other elements).
附加的畫面擷圖

所有回覆 (1)

more options

The value of ui.-moz-autofill-background needs to be a valid color value like transparent.

有幫助嗎?

問個問題

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