Mr-Rshare

chrome浏览器选择记住密码的账号,输入框会自动加上黄色的背景,有些设计输入框是透明背景的,需要去除掉这个黄色的背景;

这个黄色背景是谷歌浏览器默认的样式 user agent stylesheet

修改成透明背景:

input:-webkit-autofill {

    -webkit-text-fill-color: #fff !important;
    transition: background-color 5000s ease-in-out 0s;

}

修改成其他颜色的背景:

input:-webkit-autofill,
{
-webkit-box-shadow: 0 0 0 1000px white inset;  
}

 

 

摘要:https://blog.csdn.net/qq_39003785/article/details/79900917

分类:

技术点:

相关文章:

  • 2021-11-20
  • 2022-12-23
  • 2021-12-04
  • 2022-12-23
  • 2021-11-20
  • 2022-12-23
  • 2021-07-24
  • 2022-12-23
猜你喜欢
  • 2021-05-30
  • 2021-12-26
  • 2021-11-20
  • 2021-09-03
  • 2021-11-29
  • 2021-11-20
相关资源
相似解决方案