What is better: CSS hacks or browser detection?

后端 未结 15 1725
感情败类
感情败类 2020-12-12 15:28

Commonly when I look around the Internet, I find that people are generally using CSS hacks to make their website look the same in all browsers. Personally, I have found this

15条回答
  •  旧时难觅i
    2020-12-12 16:29

    I generally like to have a stylesheet for standards-compliant browsers such as Firefox and Safari and then use conditional comments to detect Internet Explorer and serve it an additional CSS file containing IE-specific fixes and overrides.

提交回复
热议问题