Summary: IE6 does not support CSS selectors

This article lists five IE6 does not support CSS selectors, we should pay attention to when designing web pages.

Child Selector 1.

   h1 of> strong {Color: Red;} void,
   only use h1 strong {color: red;}
  does not support the child selector, but the support is derived selectors.
Selector 2.sibling
  Li Li + {font-style: Bold;} void.

3.Pseudo-Class Selector limited support.

a: link: visited {color: #fff;}, only recognize the last: visited.
Preferably written in the following order:
A: Color {Link: Navy;}
A: visited {Color: Gray;}

A: hover {Color : Red;}
A: {Active Color: Yellow;}
pseudo-class selectors support IE6 pair is limited to hyperlinks.

Selector attribute. 4

  h1 of [class] {Color: Silver;} void.
  Above do not support, Eric Meyer's CSS Definitive Guide have pointed out, I also verified the mainstream environment, IE6 SP1 / WIN XP.

5. However, Eric Meyer said book, IE for many types of selectors are not supported not correct, at least in terms of IE6, not the case .
  .warning.urgent {background: silver;} effective, not invalid

Transfer: http://www.webjx.com/htmldata/2007-08-28/1188276615.html

Reproduced in: https: //www.cnblogs.com/hdjjun/archive/2008/06/17/1223723.html

Guess you like

Origin blog.csdn.net/weixin_33881140/article/details/94497409