How to write conditional comment for non IE browsers?

后端 未结 3 1168
小鲜肉
小鲜肉 2020-12-15 20:30

I don\'t want to use a couple of javascript plugins for IE 6/7. But I want to use them for all other browsers.

How can I do it? Is there any way I can do it?

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-15 21:01

    From the Wikipedia article on conditional comments (modified to fit your version requirements):

    
    

    This code displays on non-IE browsers and on IE 8 or higher.

    The weird markup in the first line serves to make the markup standards compliant.

提交回复
热议问题