本文共 346 字,大约阅读时间需要 1 分钟。
//为什么不直接就用input,那是因为这样会覆盖checkbox和radio的样式,我们这里只需要清除输入框的谷歌样式input[type="text"],input[type="password"],input[type="number"],input[type="tel"]{ box-shadow: inset 0 0 0 100vw white!important;//覆盖见鬼了的谷歌输入框样式}
也可以用下面的方式
input[fuck-chrome]{ box-shadow: inset 0 0 0 100vw white!important;//覆盖见鬼了的谷歌输入框样式}
然后在需要去掉该死的谷歌浏览器填充样式的input节点加入fuck-chrome即可
转载地址:http://ifxaf.baihongyu.com/