input自动选择填充浏览器记住的内容后,去除输入框的背景颜色

今天在项目中碰到一个问题,就是用谷歌浏览页面,会选择一些浏览器记住的内容,input就会出现上图所示的背景颜色,解决办法如下: 代码如下: input:-webkit-autofill , textarea:-webkit-autofill, select:-webkit-autofill {-webkit-text-fill-color: #333 !important;background-c
相关文章
相关标签/搜索