如何使CSS背景颜色透明的CSS [英] How to make div background color transparent in CSS
本文介绍了如何使CSS背景颜色透明的CSS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我不使用CSS3。所以我不能使用 opacity
或过滤器
属性。没有使用这些属性我如何使 background-color
透明 div
?它应该是此链接中的文本框示例。这里的文本框的背景颜色是透明的。
I'm not using CSS3. So I can't use opacity
or filter
attributes. Without using these attributes how can I make the background-color
transparent of a div
? It should be kind of the text box example in this link. Here the text box background color is transparent. I want to make the same, but without using the above mentioned attributes.
推荐答案
透明度为您提供透明度或透明度。请参阅示例在这里。
Opacity gives you translucency or transparency. See an example Fiddle here.
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"; /* IE 8 */
filter: alpha(opacity=50); /* IE 5-7 */
-moz-opacity: 0.5; /* Netscape */
-khtml-opacity: 0.5; /* Safari 1.x */
opacity: 0.5; /* Good browsers */
注意:这些都不是CSS3属性
请参阅http://css-tricks.com/snippets/css/cross-browser-opacity/
这篇关于如何使CSS背景颜色透明的CSS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文