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

前端 未结 8 2078
借酒劲吻你
借酒劲吻你 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:38

    There's multiple hacks (see this somewhat outdated table as an example)

    And there's server-side based solutions, such as conditional-css for php

    But well written, well structured css should not need that many hacks, only the ocassional ie fix.

提交回复
热议问题