Is there a way to do browser specific conditional CSS inside a *.css file?

前端 未结 8 2107
借酒劲吻你
借酒劲吻你 2020-12-11 15:13

Is there a way to do browser specific conditional CSS inside a *.css file? I want to define all of the styles inside of the same physical file.

8条回答
  •  臣服心动
    2020-12-11 15:32

    I don't think there's a better CSS browser selector than the one referred to above by Rafael Lima, so I won't add the link here or examples which are in same post and taken from Rafael Lima's page.

    The caveat is that it can only be used outside the CSS selector and doesn't target specific lines of CSS, but it is more robust than standard methods and easier to read.

提交回复
热议问题