以登录页面为例ui设计图效果如下图:
进入登录页面cookie自动填充帐号密码之后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;
transition: background-color 50000s ease-in-out 0s; //背景色透明 生效时长 过渡效果 启用时延迟的时间
}