How IE8 browsers are compatible with CSS hack
Editor to share with you how the IE8 browser is compatible with CSS hack, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's learn about it!
CSS hack distinguishes between the following-pay attention to the pace and the reader's CSS HACK identity:
CSS hack: distinguish between IE6,IE7 and IE8,firefox
The difference is different from the browser. CSS hack is written as follows:
Distinguish between FF and IE6:
Background:orange;*background:blue; confession: FF can only recognize background:orange; IE6 recognition * background:blue
Distinguish IE7 from IE6:
Background:green! important;background:blue; is about * background:green;_background:blue
Distinguish between IE6 and IE8:
Background:orange; / * / background:blue;/**/
Distinguish between IE7 and IE8:
Background:orange; / * / background:blue;/**/
Distinguish between FF and IE7:
Background:orange; * background:green! important
Distinguish between FF,IE7,IE8,IE6:
Background:orange;*background:green important;background:#111\ 9 security background blue
Or use
Distinguish between FF,IE7,IE8,IE6:
Background:orange;*background:green! important;background:#111\ 9
The above is all the content of the article "how IE8 browsers are compatible with CSS hack". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!