CSS with if/then browser logic

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

    You can use CSS Expressions to some extent.

    See http://gadgetopia.com/post/2774 for some examples. These don't get around conditional CSS attributes per se, but they do allow you to dynamically vary the values of CSS attributes.

提交回复
热议问题