Css 如何使白色背景透明?
我想使背景以白色透明,以便背景上的半重叠图像应与白色匹配: 这是我的代码,但不适合我Css 如何使白色背景透明?,css,Css,我想使背景以白色透明,以便背景上的半重叠图像应与白色匹配: 这是我的代码,但不适合我 background1 { opacity:0.8; filter:alpha(opacity=80); } 使用这个对我来说很好 background1 { background-color: rgba(0, 0, 0, 0); background-image: none, linear-gradient(to top, rgba(255, 255, 255, 0.75)
background1 {
opacity:0.8;
filter:alpha(opacity=80);
}
使用这个对我来说很好
background1 {
background-color: rgba(0, 0, 0, 0);
background-image: none, linear-gradient(to top, rgba(255, 255, 255, 0.75) 0px, rgba(255, 255, 255, 0.8) 10px, rgba(255, 255, 255, 0.86) 20px, rgba(255, 255, 255, 0.9) 30px, rgba(255, 255, 255, 0.94) 40px, rgba(255, 255, 255, 0.98) 50px, rgba(255, 255, 255, 0.99) 60px, #FFFFFF 70px);
background-repeat: repeat;
}
试试这个
div{
position:relative;
display:inline-block
}
span{
background: rgba(255,255,255,0.60);
width:100%;
position:absolute;
bottom:5px;
color:red;
padding:5px
}
background1
我想这应该是.background1
或#background1
。这是一个开始。试试这个..背景1{背景:rgba(255255255,0.8);}Mabye只是背景颜色:rgba(255,255,255,0.5)代码>是background1
一个id还是一个类?相应地使用#
或
。