您的位置:首页 > Web前端 > CSS

iE各版本浏览器CSS兼容大全

2009-05-12 09:00 567 查看
Selectors

Element Selectors

CSS 2.1:

Internet Explorer 5Internet Explorer 5.5Internet Explorer 6Internet Explorer 7Internet Explorer 8
.value { sRules }Class (see Note)PartialPartialPartialYesYes
#value { sRules }IDYesYesYesYesYes
E { sRules }TypeYesYesYesYesYes
* { sRules }UniversalNoNoNoYesYes
Note Prior to Internet Explorer 7, there was a two-class selector limit per element.

CSS 3:

Internet Explorer 5Internet Explorer 5.5Internet Explorer 6Internet Explorer 7Internet Explorer 8
ns|E { sRules }NamespacedNoNoNoNoNo

Attribute Selectors

CSS 2.1:

Internet Explorer 5Internet Explorer 5.5Internet Explorer 6Internet Explorer 7Internet Explorer 8
[att=val] { sRules }Equality [=]NoNoNoYesYes
[att] { sRules }Existence []NoNoNoYesYes
[att|=val] { sRules }Hyphen [|=]NoNoNoYesYes
[att~=val] { sRules }Whitespace [~=]NoNoNoYesYes
CSS 3:

Internet Explorer 5Internet Explorer 5.5Internet Explorer 6Internet Explorer 7Internet Explorer 8
[ns|attr] { sRules }NamespacedNoNoNoYesYes
[att^=val] { sRules }Prefix [^=]NoNoNoYesYes
[att*=val] { sRules }Substring [*=]NoNoNoYesYes
[att$=val] { sRules }Suffix [$=]NoNoNoYesYes

Combinators

CSS 2.1:

Internet Explorer 5Internet Explorer 5.5Internet Explorer 6Internet Explorer 7Internet Explorer 8
E + F { sRules }Adjacent Sibling (+)NoNoNoYesYes
E > F { sRules }Child (>)NoNoNoYesYes
E F { sRules }DescendantYesYesYesYesYes
CSS 3:

Internet Explorer 5Internet Explorer 5.5Internet Explorer 6Internet Explorer 7Internet Explorer 8
E ~ F { sRules }General Sibling (~)NoNoNoYesYes

Pseudo-classes

CSS 2.1:

Internet Explorer 5Internet Explorer 5.5Internet Explorer 6Internet Explorer 7Internet Explorer 8
:active { sRules }:activeNoNoNoPartialYes
:first-child { sRules }:first-childNoNoNoYesYes
:focus { sRules }:focusNoNoNoNoYes
:hover { sRules }:hoverPartialPartialPartialYesYes
:lang(C) { sRules }:lang()NoNoNoNoYes
:link { sRules }:linkYesYesYesYesYes
:visited { sRules }:visitedYesYesYesYesYes
@page :first { sRules }@page :firstNoNoNoNoYes
@page :left { sRules }@page :leftNoNoNoNoYes
@page :right { sRules }@page :rightNoNoNoNoYes
CSS 3:

Internet Explorer 5Internet Explorer 5.5Internet Explorer 6Internet Explorer 7Internet Explorer 8
:root { sRules }:rootNoNoNoNoNo
:nth-child() { sRules }:nth-child()NoNoNoNoNo
:nth-last-child() { sRules }:nth-last-child()NoNoNoNoNo
:nth-of-type() { sRules }:nth-of-type()NoNoNoNoNo
:nth-last-of-type() { sRules }:nth-last-of-type()NoNoNoNoNo
:last-child { sRules }:last-childNoNoNoNoNo
:first-of-type { sRules }:first-of-typeNoNoNoNoNo
:last-of-type { sRules }:last-of-typeNoNoNoNoNo
:only-child { sRules }:only-childNoNoNoNoNo
:only-of-type { sRules }:only-of-typeNoNoNoNoNo
:empty { sRules }:emptyNoNoNoNoNo
:target { sRules }:targetNoNoNoNoNo
:not(X) { sRules }:not()NoNoNoNoNo
:enabled { sRules }:enabledNoNoNoNoNo
:disabled { sRules }:disabledNoNoNoNoNo
:checked { sRules }:checkedNoNoNoNoNo
:indeterminate { sRules }:indeterminateNoNoNoNoNo
:default { sRules }:defaultNoNoNoNoNo
:valid { sRules }:validNoNoNoNoNo
:invalid { sRules }:invalidNoNoNoNoNo
:in-range { sRules }:in-rangeNoNoNoNoNo
:out-of-range { sRules }:out-of-rangeNoNoNoNoNo
:required { sRules }:requiredNoNoNoNoNo
:optional { sRules }:optionalNoNoNoNoNo
:read-only { sRules }:read-onlyNoNoNoNoNo
:read-write { sRules }:read-writeNoNoNoNoNo

Pseudo-elements

CSS 2.1:

Internet Explorer 5Internet Explorer 5.5Internet Explorer 6Internet Explorer 7Internet Explorer 8
:after { sRules }:afterNoNoNoNoYes
:before { sRules }:beforeNoNoNoNoYes
:first-letter { sRules }:first-letterNoYesYesYesYes
:first-line { sRules }:first-lineNoYesYesYesYes
CSS 3:

Internet Explorer 5Internet Explorer 5.5Internet Explorer 6Internet Explorer 7Internet Explorer 8
::before { sRules }::beforeNoNoNoNoNo
::after { sRules }::afterNoNoNoNoNo
::first-letter { sRules }::first-letterNoNoNoNoNo
::first-line { sRules }::first-lineNoNoNoNoNo
::selection { sRules }::selectionNoNoNoNoNo
::value { sRules }::valueNoNoNoNoNo
::choices { sRules }::choicesNoNoNoNoNo
::repeat-item { sRules }::repeat-itemNoNoNoNoNo
::repeat-index { sRules }::repeat-indexNoNoNoNoNo

Attributes

CSS 2.1:

Internet Explorer 5Internet Explorer 5.5Internet Explorer 6Internet Explorer 7Internet Explorer 8
{ sRule!important }!important Declaration PartialPartialPartialYesYes

Lists

CSS 2.1:

Internet Explorer 5Internet Explorer 5.5Internet Explorer 6Internet Explorer 7Internet Explorer 8
{ list-style : sStyle }list-styleYesYesYesYesYes
{ list-style-image : sStyle }list-style-imageYesYesYesYesYes
{ list-style-position : sStyle }list-style-positionYesYesYesYesYes
{ list-style-type : sStyle }list-style-typeNoNoNoPartialYes

Color and Background

CSS 2.1:

Internet Explorer 5Internet Explorer 5.5Internet Explorer 6Internet Explorer 7Internet Explorer 8
{ color : sColor }colorYesYesYesYesYes
{ background : sBackground }backgroundYesYesYesYesYes
{ background-attachment : sAttachment }background-attachmentPartialPartialPartialYesYes
{ background-color : sColor }background-colorYesYesYesYesYes
{ background-image : sLocation }background-imageYesYesYesYesYes
{ background-position : sPosition }background-positionPartialPartialPartialPartialYes
{ background-repeat : sRepeat }background-repeatYesYesYesYesYes
CSS 3:

Internet Explorer 5Internet Explorer 5.5Internet Explorer 6Internet Explorer 7Internet Explorer 8
{ color-profile : sProfile }color-profileNoNoNoNoNo
{ rendering-intent : sIntent }rendering-intentNoNoNoNoNo
{ background : sBackground1,

sBackground2, etc. }
background (multiple)NoNoNoNoNo
{ background-clip : sClip }background-clipNoNoNoNoNo
{ background-origin : sOrigin }background-originNoNoNoNoNo
{ background-break : sBreak }background-breakNoNoNoNoNo
{ background-size : sSize }background-sizeNoNoNoNoNo



查看更多 http://msdn.microsoft.com/zh-cn/library/cc351024(en-us,VS.85).aspx

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: