给input边框和背景颜色设置全透明,但是里面的字不会消失

1.让背景颜色变透明(二选一)

background-color:rgba(0,0,0,0);

background:rgba(0,0,0,0);

 

2.让边框变透明(二选一)

border-color: transparent;

border: 1px solid rgba(0,0,0, 0);

 

3.css3文字渐变

color:#DA0A0A;

background-image: -webkit-gradient(linear, 0 0, 0 bottom, from(rgba(248, 0, 0, 1)), to(rgba(95, 4, 4, 1)));

-webkit-background-clip: text;

-webkit-text-fill-color: transparent;

 

相关文章:

  • 2022-12-23
  • 2021-06-03
  • 2022-12-23
  • 2022-01-22
  • 2021-11-17
  • 2021-10-07
  • 2021-12-15
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-27
  • 2021-06-22
  • 2022-12-23
  • 2021-12-16
相关资源
相似解决方案