It is often used for website creation. It is also important to measure the average usage of a div + CSS architect.
Different browsers use CSS hack:
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.
| |
IE6 |
IE7 |
FF |
| * |
√ |
√ |
× |
| ! Important |
× |
√ |
√ |
| _ |
√ |
× |
× |
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.
Reproduced on: www.8tops.com Original: Guo Wen