0
我有一个表单,我保存了我的登录凭证。现在,Chrome向输入字段显示自己的背景颜色。
我做过这方面的研究,但没有找到任何东西。
有没有什么办法可以覆盖仅来自chrome的用户代理样式表?我们如何覆盖用户代理样式表?
我有一个表单,我保存了我的登录凭证。现在,Chrome向输入字段显示自己的背景颜色。
我做过这方面的研究,但没有找到任何东西。
有没有什么办法可以覆盖仅来自chrome的用户代理样式表?我们如何覆盖用户代理样式表?
是可以改变的样式,像这样:
/* Change Autocomplete styles in Chrome*/
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus
input:-webkit-autofill,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
border: 1px solid green;
-webkit-text-fill-color: green;
-webkit-box-shadow: 0 0 0px 1000px #000 inset;
transition: background-color 5000s ease-in-out 0s;
}
按照文章的详细信息: https://css-tricks.com/snippets/css/change-autocomplete-styles-webkit-browsers/
谢谢Bartek。 :) 这个对我有用.. –
[谷歌浏览器表单自动填充和黄色背景]的可能的复制(HTTP:/ /stackoverflow.com/questions/2920306/google-chrome-form-autofill-and-its-yellow-background) – CBroe