在使用chrome浏览器设计网页时,想将input背景改成透明,也就是

background-color:transparent;

可是效果并不如人意

hack方法:

input:-webkit-autofill,
        textarea:-webkit-autofill,
        select:-webkit-autofill{
            -webkit-box-shadow: 0 0 0 1000px transparent inset;
        }
View Code

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-08-20
  • 2022-02-04
  • 2021-10-04
猜你喜欢
  • 2022-12-23
  • 2021-12-19
  • 2021-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-09
相关资源
相似解决方案