CSS hack: Display different effects for Ie6,ie7,firefox This is also important when you are using a website to measure the level of a div+css architect. Different browsers to distinguish CSS hack:
Difference IE6 with FF: Background:orange;*background:blue;
Distinction between IE6 and IE7: Background:green!important;background:blue;
Difference IE7 with FF: Background:orange; *background:green;
Difference ff,ie7,ie6: Background:orange;*background:green!important;*background:blue;
Note: IE can recognize *; standard browsers (such as FF) cannot recognize *; IE6 can recognize *, but cannot recognize!important, IE7 can recognize the *, also can identify!important; FF does not recognize *, but can identify!important;
|
IE6 |
IE7 |
Ff |
* |
√ |
√ |
X |
!important |
X |
√ |
√ |
------------------------------------------------------ Add another, underline "_" in addition, IE6 supports underscores, IE7 and Firefox do not support underscores.
|