對不起,可能是我的語氣不好,顯示文字和圖像在同一時間:背景的不透明度
問:
我使用的不透明背景 CSS3這樣的代碼
編輯:(添加代碼)
CSS:
opecity {
opacity:.75;
content:('Hello');
background:#111 url(../img/view.png) no-repeat center;
}
.opecity img:hover{
-moz-opacity: 0.10;
opacity: 0.10;
-ms-filter:"progid:DXImageTransform.Microsoft.Alpha"(Opacity=70);
background:#000;
}
HTML:只
<div class="opecity">
<a class="example-image-link" href="img/port1.png" data-lightbox="example-1">
<img class="example-image" src="img/port1.png" alt="thumb-1" width="250" height="220"/>
</a>
</div>
此代碼顯示圖像,但不顯示內容 '你好'。但我想同時顯示圖像和內容。我也關心這個
Stackoweflow.com問題。
Image and text with opacity background in the same DIV
但我沒有得到解決。
也可能是您的瀏覽器,你可以請告訴我們(HTML) – jcho360
它的CSS代碼.opecity {代碼的一部分 \t不透明度:0.75;內容:('你好');背景:#111 url(../ img/view.png)no-repeat center; \t} .opecity img:hover { -moz-opacity:0.10; 不透明度:0.10; -ms-filter:「progid:DXImageTransform.Microsoft.Alpha」(Opacity = 70); 背景:#000; \t} – bigtechideas
其HTML代碼: