以下是设置背景封面的代码,我想设置背景封面的透明度,以便可以在其上显示一些文本。我已经得到以下解决方案,但它对我不起作用。我不知道自己错在哪里。
```css background-color: rgba(255, 255, 255, 0.5); ``` 请注意,其中0.5的值表示透明度,范围从0到1。
```css background-color: rgba(255, 255, 255, 0.5); ``` 请注意,其中0.5的值表示透明度,范围从0到1。
style="background: url(images/football_ground.jpg) no-repeat center center fixed;-webkit-
background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;-moz-opacity:.30;
filter:alpha(opacity=30);
-khtml-opacity: 0.3; ">