前言
最近写了个登录记住密码的功能,结果和浏览器自带的记住密码冲突,导致样式变得很糟糕
处理
使用过渡和过渡延时
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
-webkit-transition: "color 9999s ease-out, background-color 9999s ease-out";
-webkit-transition-delay: 9999s;
}
原文链接:https://blog.csdn.net/chhpearl/article/details/106273524