做一个登录页面的需求的时候,发现浏览器自动选中的数据会有一个input的样式,会覆盖我们写的样式.
找了一圈发现这个最靠谱
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus, input:-webkit-autofill:active { transition: background-color 5000s ease-in-out 0s; }
修改之后