有时候在做登录页面的时候,浏览器会记录账号和密码,这时候可能导致input 框的颜色 和背景颜色有差异(input框默认是白黄色),效果不好看,这样优化一下就好了
input:-webkit-autofill , textarea:-webkit-autofill, select:-webkit-autofill {
-webkit-text-fill-color: #ededed !important;
-webkit-box-shadow: 0 0 0px 1000px transparent inset !important;
background-color:transparent;
background-image: none;
}