Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Which selectors of CSS are not supported in IE6?

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report