问题
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/
来源:https://stackoverflow.com/questions/6190456/polyfill-for-css-target-not-and-tilde-sibling-selectors