Css style compatible IE6,IE7,FIREFOX browser Writing tutorial
This article mainly explains the "Css style compatible with IE6,IE7,FIREFOX browser writing tutorial", the article explains the content is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "Css style compatible IE6,IE7,FIREFOX browser writing tutorial" bar!
According to the differences in some symbol recognition between FF and IE, we can define styles for FF and IE separately, for example:
Distinguish IE6 from FF:
Background:orange;*background:blue
Distinguish IE6 from IE7:
Background:green! important;background:blue
Distinguish IE7 from FF:
Background:orange; * background:green
Distinguish between FF,IE7,IE6:
Background:orange;*background:green! important;*background:blue
Note: IE can recognize *; standard browsers (such as FF) can not *
IE6 can recognize *, but not! important
IE7 can recognize *, can also recognize! important
FF does not recognize *, but can recognize! important
So the standard way to write FF,IE7,IE6:
Color:#fff; * color:#000! important; * color:#ff6600
Firefox: White, IE7: black, IE6: orange
Add another one, underscore "_"
IE6 supports underlining, while neither IE7 nor firefox supports underlining.
So you can also distinguish IE6,IE7,firefox in this way.
: background:orange;*background:green;_background:blue
Note: no matter what method it is, the writing order is firefox in front, IE7 in the middle, and IE6 at the end.
Thank you for reading, the above is the "Css style compatible with IE6,IE7,FIREFOX browser Writing tutorial" content, after the study of this article, I believe that everyone on the Css style compatible with IE6,IE7,FIREFOX browser writing tutorial this problem has a deeper understanding, the specific use of the situation also needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!