CSS :before/:after Selectors in IE 6,7

前端 未结 5 1101
被撕碎了的回忆
被撕碎了的回忆 2020-12-15 14:26

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 selec

5条回答
  •  时光说笑
    2020-12-15 15:07

    using Jquery you can bosh in the supposrt wherever you like, bit like this nugget

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

提交回复
热议问题