:after and :before css pseudo elements hack for IE 7
问题 I am using :after and :before css pseudo elements and it is working fine in IE8 , and all modern browsers but it is not working fine in IE7 . Are there known hacks to work around this in IE7 ? 回答1: with any pure CSS hack it's not possible. Use IE8.js http://code.google.com/p/ie7-js/ It has support for this. http://ie7-js.googlecode.com/svn/test/index.html test page also there after - http://ie7-js.googlecode.com/svn/test/after.html before - http://ie7-js.googlecode.com/svn/test/before.html