原因:
谷歌浏览器添加了私有属性导致的
解决:利用边距顶掉
input:-webkit-autofill {box-shadow: 0 0 0 100px rgba(2,56,160,.35) inset;}
不过假如输入框设置了透明度,就不能这么用了
原因:
谷歌浏览器添加了私有属性导致的
解决:利用边距顶掉
input:-webkit-autofill {box-shadow: 0 0 0 100px rgba(2,56,160,.35) inset;}
不过假如输入框设置了透明度,就不能这么用了
本文标题:chrome记住密码后背景色自动填充为黄色
本文链接:https://www.haomeiwen.com/subject/jivzpxtx.html
网友评论