Opacity Properity in IE6

◇◆丶佛笑我妖孽 提交于 2019-12-01 12:09:09

问题


I have been working on this for a little while, and I have also searched stackoverflow, but couldn't find an answer.

Here's what I'm trying to do:

#container {
    margin: 0 auto;
    width: 950px;
    opacity: .5;
    filter: alpha(opacity = 50);
    background: #fff;
    filter: alpha(opacity=50);
    -moz-opacity: 0.5;
    -khtml-opacity: 0.5;
    opacity: 0.5;
}

But it doesn't work for me in using IETester.
The other versions display it correctly, IE6 does not.

So, where is the bug?
What have I missed ?


回答1:


For IE 6 and 7, try the following:

filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=50);

Source.



来源:https://stackoverflow.com/questions/8888792/opacity-properity-in-ie6

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!