opacity 实现图层透明的CSS属性

作者:MJ 发布于:2012-8-24 8:34 Friday 分类:Css

opacity语法: opacity:<alphavalue>  | inherit

支持IE浏览器语法写法: filter: alpha(opacity=<alphavalue> ); 【<alphavalue>的取值范围是0-100

支持Firefox, Safari, Chrome 览器语法写法:opacity:<alphavalue>; <alphavalue>的取值范围是0.0-1.0

支持mozilla firefox 览器语法写法:-moz-opacity:<alphavalue>; <alphavalue>的取值范围是0.0-1.0

 

opacity取值: <alphavalue> | inherit

<alphavalue>:透明度取值(取值范围[0.0-1.0 / IE是0-100 ])

inherit:默认继承

 

CSS实例:

.touming{width:300px; height:auto; background-color:#000000; FILTER: alpha(opacity=70); opacity: 0.7; -moz-opacity: 0.7; }


 

 

 

发表评论:

Powered by 588cy.com