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

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

WBOY
Release: 2016-06-24 11:30:38
Original
1399 people have browsed it

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

 

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

 

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

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

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

 

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template