其实只要设置autocomplete=”off”属性即可去掉
设置如下代码是无效的
input:-webkit-autofill, textarea:-webkit-autofill, select:-webkit-autofill{ background:white !important; }
不过如果一定需要用样式解决可以用(用阴影变相解决)
input:-webkit-autofill, textarea:-webkit-autofill, select:-webkit-autofill{ -webkit-box-shadow: 0 0 0 1000px white inset; }