Add CSS3 support to IE7+ with Javascript

2019-02-07 00:47发布

问题:

I would like to use CSS3 selectors (such as :nth-child), but they aren't supported by any version of IE. In my Rails app I've already included Script.aculo.us and Prototype and it would be great not to have to include Jquery.

Is there any script to fix IE's behaviour? (I'm not interested in IE6 compatibility)

回答1:

Have a look at the IE8.js library by Dean Edwards. It does pretty much what you're asking for.

See the IE7 Test Page for the things it fixes.



回答2:

http://www.keithclark.co.uk/labs/ie-css3/