CSS hack: distinction between IE6, IE7, firefox


July 6, 2008   Css — Tags: , , , — 52coding    

Differences between different browsers, CSS hack writing:
聽IE6 and the difference between FF:
聽聽聽聽聽聽聽 background: orange; * background: blue;
聽IE6 and the difference between IE7:
聽聽聽聽聽聽聽 background: green! important; background: blue;
聽Differences between IE7 and FF:
聽聽聽聽聽聽聽 background: orange; * background: green;
聽Differences between FF, IE7, IE6:
聽聽聽聽聽聽聽 background: orange; * background: green! important; * background: blue;

Note: IE can identify *; standard browser (such as FF) does not recognize *;
IE6 can identify *, but we can not identify! Important,
IE7 can identify *, can also identify! Important;
FF does not recognize * , but can identify! Important;

In addition , underline “_”
聽IE6 support underline ,IE7 and firefox did not support underline .

聽So we also can be to distinguish between IE6, IE7, firefox
聽: Background: orange; * background: green; _background: blue;