修改谷歌密码填充后的背景色

 input {
   background-color: #fff !important;
 }
/* 核心代码 */
 input:-webkit-autofill {
   transition: background-color 5000s ease-in-out 0s;
 }
 input:-webkit-autofill:focus {
   /* 鼠标获取焦点时文本的字体颜色 */
   -webkit-text-fill-color: #fff !important;
 }
/* 貌似要直接命中元素,使用deep选中好像不行。个人见解。 */
posted @ 2021-11-24 19:33  Life_countdown  阅读(51)  评论(0)    收藏  举报