我尝试在背景图像上应用透明的颜色叠加,背景图像已显示出来,并且希望该代码是正确的,但如果有更有效的方法,请分享。
当我尝试使用rgba值和透明度应用背景颜色时,没有显示任何内容...
有什么建议吗?
当我尝试使用rgba值和透明度应用背景颜色时,没有显示任何内容...
有什么建议吗?
.call-to-action {
color: #fff;
background: url(images/cta-bg.jpg) no-repeat center center fixed;
background-color: rgba(255, 255, 255, 0.5) !important;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
font-size: 18px;
padding: 48px 12px;
text-align: center;
}