我剛剛使用opacity
爲background
的內容,但此div(我的意思是內容div)中的文本也變得不透明,我也無法清楚地看到這個div
的文本。防止使用不透明屬性時文本變得不透明
我想要容器元素background
是不透明的,但不是文本。
div#content{
color:white;
width:1150px;
background_color:black;
opacity:.65;
margin:0 auto;
filter:alpha(opacity=65);
}
可能的重複[透明背景,但不是內容(文本和圖像),它只在CSS中?](http://stackoverflow.com/questions/806000/transparent-background-但並非在內容,文字圖像-裏面,它功能於CSS-上) – Joonas