css透明兼容,alpha兼容

2012年07月24日 0条评论 622 views 标签:,

以前的兼容代码:

.transparent_class { 
    -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"; /* ie8  */
    filter:alpha(opacity=50);    /* ie5-7  */
    -moz-opacity:0.5;    /* old mozilla browser like netscape  */
    -khtml-opacity: 0.5;    /* for really really old safari */ 
    opacity: 0.5;    /* css standard, currently it works in most modern browsers like firefox,  */
}

现在的兼容

.transparent_class { 
    -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"; /* ie8  */
    filter:alpha(opacity=50);    /* ie5-7  */
    opacity: 0.5;    /* css standard, currently it works in most modern browsers  */
}

 



无觅m88帮助网站插件,快速提升流量

你也可以分享到: