CSS: before /: after selectors in IE 6.7

I know that: before /: after selectors are not available in IE 6.7
http://www.quirksmode.org/css/contents.html

Is there a js hack to enable support for these selectors in IE?

+5
source share
5 answers

of course jQueries before and after

what else;)

+3
source

There is a Javascript solution called IE7, it fixes common IE errors: http://code.google.com/p/ie7-js/

+7
source

, ; :

http://jquery.lukelutman.com/plugins/pseudo/

CSS2: before : after - ... . , IE7. : " , Microsoft , , !" ? . , - * {: (...); } - can ( less) enable: before : after for IE5.5 +

jquery.pseudo.js , :

p:before, p {
    before: 'foo';
    content: 'foo'; }

p:before, p .before {
    color: blue; }
+1

Jquery, , , , .

 /* fix top nav ui in ie6*/
if ($.browser.msie && $.browser.version <= 6 ) {
    $('#topNav ul li a:not(:last)').after("/");
}
+1

https://gist.github.com/1133433 IE 6 7. CSS3 , - CSS3 Flexible Box w/box-sizing: border-box, padding fixed widths. : ( ). , .

, CSS3 Flexible Box. box-align: , , SOL.

0

All Articles