Get the App
SLTechnology News&Howtos  ›  Development  › 

How IE8 browsers are compatible with CSS hack

Shulou Source: shulou.com Published: 2022-06-01 06:53:53 10月03日 Update

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!

Tags: Browser browse article content not much writing advertising most more pace knowledge industry information information channel identity reader channel reference learning help Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker Shulou Information Redmi MySQL Huawei