Polyfill for css :target, not(), and [tilde] sibli

2019-02-24 20:28发布

问题:

I'd like to start using the css :target, not() and ~ sibling selectors now. Is there a polyfill or some other solution for these? I'd prefer to be able to simply use the css for them over using js/jQuery to simulate them for every use.

回答1:

IE9.js polyfills everything you're looking for.

http://ie7-js.googlecode.com/svn/test/index.html



回答2:

This one also does the work: http://selectivizr.com/