What is better: CSS hacks or browser detection?

后端 未结 15 1715
感情败类
感情败类 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条回答
  •  情深已故
    2020-12-12 16:32

    I try not to use either. In a lot of cases the issues that IE have can be avoided by simplifying the structure of your markup somewhat.

    It also helps if you use a decent CSS reset like Eric Meyer's.

    I am also slowly but surely dropping support for IE6 as a matter of principle, especially given the latest security issues with IE6 and IE7 - we're not going to change people's browsing habits and browser preferences if we keep supporting crappy browsers.

提交回复
热议问题