Conditional comment for 'Except IE8'?

后端 未结 3 1121
死守一世寂寞
死守一世寂寞 2020-11-27 22:33

I\'m using for targeting IE8, but there\'s some JS that I want to load for all browsers EXCEPT IE8, what conditional comm

3条回答
  •  感动是毒
    2020-11-27 23:11

    there's some JS that I want to load for all browsers EXCEPT IE8, what conditional comment should I use?

    For something to appear in ‘other browsers’ that don't support CCs, you need a downlevel-revealed conditional comment.

    
        ....
    
    

    (this is slightly different to Microsoft's official syntax which is not valid HTML.)

    “All browsers except IE8” is an unusual requirement, are you sure that's what you want? What about future versions of IE?

提交回复
热议问题