找到对应代码块,附加以下css样式:
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;
//背景色透明 生效时长 过渡效果 启用时延迟的时间
}
input {
background-color:transparent
}
拓展:
如果要彻底取消网页打开后浏览器自动填充密码的功能,可以初始给输入框设置一个只读(readonly)属性,当打开网页后再设置一个定时器取消密码框的只读属性。