Different browsers (Internet Explorer 6, Internet Explorer 7, Mozilla Firefox, and so on) have different understandings of CSS parsing, which leads to different page effects, we cannot get the page effect we need. At this time, we need to write different CSS for different browsers so that they can be compatible with different browsers at the same time, so that we can get the desired page effect in different browsers. The process of writing different CSS codes for different browsers is CSS hack.
CSS hack Principle
Because different browsers have different support for CSS and parse results, they also have a relationship with the priority of CSS. We can write different CSS for different browsers based on this. For example, IE6 can recognize underscores (_) and star numbers (*). IE7 can recognize asterisks (*) but cannot recognize underscores (_). Firefox cannot recognize underscores.
CSS hack has three forms:
1. CSS internal hack
2. selector hack
3. Reference hack (if IE) in the HTML Header)
(1/10/4 sorting by undead Xiaoqiang)