less代码
input, textarea, select{
&:-webkit-autofill,
&[type=password]:focus,
&[type=text]:focus
{
-webkit-box-shadow: 0 0 0 1000px white inset !important;
}
}
上面的办法如果不起作用,试下下面这个
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
transition: background-color 5000s ease-in-out 0s;
}
如果还不行,来这里看其他方法
https://stackoverflow.com/questions/2781549/removing-input-background-colour-for-chrome-autocomplete
网友评论