开发者

Internet Explorer 6 and Opacity

开发者 https://www.devze.com 2023-04-07 12:13 出处:网络
This isn\'t a pressing issue, but everything that I\'ve read indicates that these CSS opacity rules should work in Internet Explorer 6:

This isn't a pressing issue, but everything that I've read indicates that these CSS opacity rules should work in Internet Explorer 6:

.videos img {
    zoom: 1;
    margin: 0 auto;
}
.videos a.video img {
    opacity: 0.5;
    filter: alpha(opacity=50);
}开发者_如何学C
.videos a.video:hover img {
    opacity: 1.0;
    filter: alpha(opacity=100);
}

I have created this jsFiddle to share the code. I am testing using IETester on Windows 7, and the technique works in IE 7-9, but not IE 6.


OK, it seems we've found the solution. IETester is not fully reliable; in this particular case, filters didn't work because OP didn't run IETester as administrator.

It's always better to use "native" versions of IE, for example IE running in virtual machine.

0

精彩评论

暂无评论...
验证码 换一张
取 消