解决chrome浏览器html页面保存用户名密码导致的样式改变

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;  
}

参考

https://blog.csdn.net/J_S_King/article/details/100112482

文档更新时间: 2020-01-22 16:09   作者:Seeker