Difference between different browsers, CSS hack writing:
Difference between IE6 and FF:
Background: orange; * Background: blue;
Difference between IE6 and IE7:
Background: Green! Important; Background: blue;
Difference between IE7 and FF:
Background: orange; * Background: green;
Difference ff, IE7, IE6:
Background: orange; * Background: Green! Important; * Background: blue;
Note: Both IE and standard browsers (such as ff) cannot recognize *;
IE6 can recognize *, but cannot recognize it! Important,
IE7 can recognize * and can also recognize! Important;
FF cannot recognize *, but can recognize it! Important;
IE6
IE7
FF
*
√
√
×
! Important
×
√
√
Add another underscore "_",
IE6 supports underlines, while IE7 and Firefox do not.
So you can also distinguish IE6, IE7, and Firefox.
: Background: orange; * Background: green; _ Background: blue;
Note: No matter what method, the order of writing is Firefox's preface, IE7's writing in the middle, and IE6's writing at the end.
CSS hack: differentiate IE6, IE7, and Firefox-website Standardization