谷歌浏览器的提示框选中,有黄色背景,如何去掉呢?
方法一:
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
-webkit-box-shadow: 0 0 0 1000px #3c3c41 inset;
-webkit-text-fill-color: #8f909c;
}
用shadow来盖住背景颜色,-webkit-text-fill-color 这个是你字体想要什么颜色的,可以更改他的值。
方法二:去掉提示
在input上加上 autocomplete=”off”