Get the App
SLTechnology News&Howtos  ›  Development  › 

Which selectors of CSS are not supported in IE6?

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

This article mainly explains "which selectors of CSS are not supported in IE6". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Now let the editor take you to learn "which selectors of CSS are not supported in IE6"!

CSS selector not supported by IE6

This article lists five CSS selectors that are not supported by IE6, which you should pay attention to when designing web pages.

1.childselector

H2 > strong {color:red;} is invalid, you can only use h2strong {color:red;}

Subselector is not supported, but derived selector is supported.

2.siblingselector

Li+li {font-style:bold;} is invalid.

Limited support for 3.Pseudo-ClassSelector.

A:link:visited {color:#fff;}, only one: visited.

* write in the following order:

A:link {color:navy;}

A:visited {color:gray;}

A:hover {color:red;}

A:active {color:yellow;}

IE6 supports pseudo-class selectors and is limited to hyperlinks.

4.attributeselector

H2 [class] {color:silver;} is invalid.

The above is not supported, as pointed out in EricMeyer's authoritative guide to CSS, and I have also verified it in the mainstream environment, IE6SP1/WINXP.

5.warning.urgent {background:silver;} is valid, not invalid.

But it is not true that IE does not support multi-class selectors, at least for IE6, according to EricMeyer's book.

At this point, I believe you have a deeper understanding of "which selectors of CSS are not supported in IE6". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Tags: Support selection content learning practical deeper effective mainstream interest practicality practicality not so simple operation method more limited friends authority environment website Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi MySQL MariaDB macOS vpn