不透明的元素,我使用下面的CSS代碼:CSS透明度,如何在透明容器元素
.rounded_box{
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
width:850px;
padding:15px;
background-color:#80C1FF;
margin:0 auto;
color: #0D2E47;
font-family: Arial,Helvetica,sans-serif;
opacity:0.6;
filter:alpha(opacity=60); /* For IE8 and earlier */
/* background-color:rgba(255,0,0,255); */
}
.rounded_box h1{
opacity:1.0;
filter:alpha(opacity=100); /* For IE8 and earlier */
}
而且我希望有h1和其他元件的不透明是有DIV類rounded_box內。但是,也讓h1和其他元素透明,我不想要。
那麼什麼可以爲這個問題的解決?
設置RGBA值的背景顏色...僅限於 –
RGBA不適用於IE8及更早版本 – Hafiz
相關http://stackoverflow.com/questions/806000/transparent-background-but-not-the-content -text-images-inside-it-in-css-on –