Differentiation between CSS hack writing methods in different browsers:
Differentiation between IE6 and FF:
Backgroundrange;*blue; < /span>
Differentiation between IE6 and IE7:
background:green !important;blue; < /span>
The difference between IE7 and FF:
backgroundrange; *background:green;
The difference between FF, IE7 and IE6:
backgroundrange;*background:green !important;*blue; < /span>
Note: IE can recognize it*; standard browsers (such as FF) cannot recognize it*;
IE6 can Recognize *, but not !important,
IE7 can recognize *, but can also recognize !important;
FF cannot recognize *, but can recognize !important;
Add another one, underline "_",
IE6 supports underline, but neither IE7 nor firefox supports underline.
The above is the detailed content of Introduction to CSS hack writing methods in different browsers. For more information, please follow other related articles on the PHP Chinese website!