Using IE conditional comments inside a stylesheet

后端 未结 6 1660
深忆病人
深忆病人 2021-02-01 02:59

I know that you can use an IE conditional comment inside HTML:


6条回答
  •  孤街浪徒
    2021-02-01 03:15

    It can be easier than what Derek Hunziker said:

    Simply include this code as it is:

    
    
    
    
      
        
    

    Then you can target it easily, for example if you want to target IE 8 and lower you write:

    .lt-ie9 body{css rule here;}
    

    and you are done!

    Cheers

提交回复
热议问题