CSS with if/then browser logic

前端 未结 7 1246
清酒与你
清酒与你 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:16

    Well you could use javascript to detect the browser and apply a class based on that. For example, see:

    JQuery Attributes

提交回复
热议问题