less代码如下:
input {
// 支持火狐
&:autofill {
background: #fff;
}
// 支持chrome
&:-webkit-autofill,
&:-webkit-autofill:hover,
&:-webkit-autofill:focus,
&:-webkit-autofill:active {
transition: background-color 5000s!important;
-webkit-text-fill-color: rgba(0,0,0,0.65) !important;
}
}