CSS3PIE - how trouble free is it for IE6 - IE8

流过昼夜 提交于 2019-12-11 10:50:46

问题


I'm wondering if folks can tell me how trouble free CSS3PIE is for IE6 - IE8 (beyond the known issues). It seems like an excellent addition to allow one to use CSS3 features -- rounded corners, gradients, shadows, etc -- I just have limited time to invest into investigating stability / errors.

Thanks

P.S. Does it turn off automatically in browsers that support CSS3?


回答1:


It has worked perfectly for me and it only affects IE so you dont have to worry about the other browsers.




回答2:


Don't worry it's transparent. The only "real" problem I've been having was with opacity transitions in ie8 : In order to make a div fade out, you need to apply this css definition to every child element :

filter: inherit

Problem is it doesn't seem to work on the shape elements css3pie generates with css only. I had to modify the minified .htc file as folows : look for the second occurance of "shape" in the script. It's in a function called 'Aa'. After this statement:

g=e[a]=f.p.Za("shape");

you can add:

g.style.filter="inherit";

This clearly is a hack but it works great! It is just for IE8. IE7 deals with transparency differently (http://www.jacklmoore.com/notes/ie-opacity-inheritance)



来源:https://stackoverflow.com/questions/7339050/css3pie-how-trouble-free-is-it-for-ie6-ie8

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