IE8 opacity activex problem

非 Y 不嫁゛ 提交于 2019-12-10 22:36:54

问题


In my css file I have this:

#imageDes {    
opacity:.70;
filter: alpha(opacity=70);  
}

if I use this on html page and open it in IE8, I get an activex warning!
What can I do?


回答1:


This is a standard warning when running these sites in the local security zone. If you run the page locally, you'll get the warning. If you run it from a server, in the internet zone, you won't get the warning (unless you've modified your security settings).

If you need to run the page in the local zone without the warning, you can modify IE's security settings.

See How to use security zones in Internet Explorer.




回答2:


.class {    // for IE5-7
    filter: alpha(opacity=50);
}

.class {    // for IE8
    -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
}


来源:https://stackoverflow.com/questions/2570966/ie8-opacity-activex-problem

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