Home  >  Article  >  Web Front-end  >  CSS如何实现div的透明效果_html/css_WEB-ITnose

CSS如何实现div的透明效果_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:30:381339browse

CSS如何实现div的透明效果:
在通常情况下设置div的透明度可以使用以下代码:

 

filter:alpha(opacity=50); -moz-opacity:0.5; opacity:0.5;

 

以上代码可以将div设置为半透明,但是遗憾的是,IE6浏览器并不支持opacity属性。

原文地址是:http://www.softwhy.com/forum.php?mod=viewthread&tid=12681

更多内容可以参阅:http://www.softwhy.com/divcss/

 

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn