【css】html background-color设置为透明的方法
转载声明:
本文为摘录自“csdn博客”,版权归原作者所有。
温馨提示:
为了更好的体验,请点击原文链接进行浏览
摘录时间:
2020-06-29 09:01:17
html background-color设置为透明的方法如下:
1,比较好的方法:
background-color:transparent;
2,不太好的方法(模仿透明,不仔细看,看不出来)
前三个参数是颜色,后一个是透明度,效果为白色背景透明。
background-color: rgba(255,255,255,0.2);