暂无 |

91. 透明度兼容设置

A
B
C
D
答案:

发生概率:主要看你要写的东西设不设透明度

解决方案:一句话

transparent_class {

filter:alpha(opacity=50);

   -moz-opacity:0.5;

   -khtml-opacity: 0.5;

   opacity: 0.5;

}

opacity:0.5; This is the “most important” one because it is the currentstandard in CSS. This will work in most versions of Firefox, Safari, andOpera.This would be all you need if all browsers supported current standards. Which,of course, they don’t.

filter:alpha(opacity=50); This one you need for IE.

-moz-opacity:0.5; You need this one to support way old school versions of theMozilla browsers like Netscape Navigator.

-khtml-opacity:0.5; This is for way old versions of Safari (1.x) when therendering engine it was using was still referred to as KTHML, asopposed to thecurrent WebKit .

解释:
css兼容

发表评论

    评价:
    验证码: 点击我更换图片
    最新评论