input框在谷歌浏览器保存密码之后样式没了怎么办?

正常样式:
在这里插入图片描述
谷歌浏览器保存密码之后:
在这里插入图片描述

解决办法:

input:-webkit-autofill {
  // 字体颜色
  -webkit-text-fill-color: #ededed !important;
  // 背景颜色
  background-color:transparent;
  // 背景图片
  background-image: none;
  // 过渡
  transition: background-color 50000s ease-in-out 0s;
}

最后:在这里插入图片描述

发布了50 篇原创文章 · 获赞 23 · 访问量 1232

猜你喜欢

转载自blog.csdn.net/qq_44698161/article/details/103170911