alpha opacity and behavior: url(iepngfix.htc); not working in IE6

六月ゝ 毕业季﹏ 提交于 2019-12-24 11:40:10

问题


.idioma_es #logosFooter, .idioma_es #logosFooter li a {
    background: url(../nImg/microsites/logos/logos_footer.png) no-repeat scroll left top transparent;
    behavior: url(../../nJs/iepngfix.htc);

}

Result in Firefox:

Result in Internet Explorer 6 (Based on IE Tester for Windows):

the path of the .htc file is correct !

Any idea what i'm missing?


回答1:


Don't test this with IETester. It's not completely reliable.

You should use a virtual machine, but you can quickly test a page with http://ipinfo.info/netrenderer/.


After Googling a little, I might have been a little unfair to IETester (though I still don't trust it).

http://www.my-debugbar.com/wiki/IETester/HomePage

Known problems and limitations :

  • CSS Filters are not working correctly in user mode : A solution is to launch IETester as admin user and CSS Filters will work.



回答2:


You can try PIE - http://css3pie.com, that is working in IE6 too.




回答3:


IE6 does not support the alpha channel for background images apart from in specific circumstances. There is no general fix, as there is for foreground images.

Look here: http://24ways.org/2007/supersleight-transparent-png-in-ie6

Check the first bit of text under 'The pitfalls' heading



来源:https://stackoverflow.com/questions/7079505/alpha-opacity-and-behavior-urliepngfix-htc-not-working-in-ie6

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