Target IE9 Only via CSS

后端 未结 5 1718
自闭症患者
自闭症患者 2020-11-27 15:24

Just wondering given these IE hacks in my bag of tricks

\"\\9\" - for IE8 and below.
\"*\" - for IE7 and below.
\"_\" - for IE6.

i.e. such

5条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-27 16:07

    IE9 is pretty standards compliant. You shouldn't need to hack it.

    Also, you should be using IE conditional comments to load different styles. For IE 9 you would do:

    
    
    

提交回复
热议问题