CSS with if/then browser logic

前端 未结 7 1156
清酒与你
清酒与你 2021-01-05 19:37

For browsers < IE7, I want to use a certain style attribute, while for other browsers I\'d like to use another. Can I do this using a single css file, or do I have to do

7条回答
  •  借酒劲吻你
    2021-01-05 20:28

    You could use conditional comments:

    
    
    
      
    
    

    I've found it to be the cleanest solution for this kind of thing.

提交回复
热议问题