首页 > 代码库 > IE5,IE6,IE7,IE8的css兼容性列表[转自MSDN]

IE5,IE6,IE7,IE8的css兼容性列表[转自MSDN]

At-rules

CSS 2.1:

 

 IE 5.0IE 5.5IE 6.0IE 7.0IE8 Beta 1IE8 Beta 2IE 8.0
@charsetNoYesYesYesYesYesYes
@importYesYesYesYesYesYesYes
@mediaNoYesYesYesYesYesYes
@pageNoYesYesYesYesNo*Yes

CSS 3:

 

 IE 5.0IE 5.5IE 6.0IE 7.0IE8 Beta 1IE8 Beta 2IE 8.0
@font-faceNoYesYesYesYesYesYes
@namespaceNoNoNoNoNoNoNo

Selectors

Element Selectors

CSS 2.1:

 

  IE 5.0IE 5.5IE 6.0IE 7.0IE8 Beta 1IE8 Beta 2IE 8.0
.value { sRules }Class (see Note)PartialPartialPartialYesYesYesYes
#value { sRules }IDYesYesYesYesYesYesYes
E { sRules }TypeYesYesYesYesYesYesYes
* { sRules }UniversalNoNoNoYesYesYesYes

Note   Prior to Internet Explorer 7, there was a two-class selector limit per element.

 

CSS 3:

 

  IE 5.0IE 5.5IE 6.0IE 7.0IE8 Beta 1IE8 Beta 2IE 8.0
ns|E { sRules }NamespacedNoNoNoNoNoNoNo

Attribute Selectors

CSS 2.1:

 

  IE 5.0IE 5.5IE 6.0IE 7.0IE8 Beta 1IE8 Beta 2IE 8.0
[att=val] { sRules }Equality [=]NoNoNoYesYesYesYes
[att] { sRules }Existence []NoNoNoYesYesYesYes
[att|=val] { sRules }Hyphen [|=]NoNoNoYesYesYesYes
[att~=val] { sRules }Whitespace [~=]NoNoNoYesYesYesYes

CSS 3:

 

  IE 5.0IE 5.5IE 6.0IE 7.0IE8 Beta 1IE8 Beta 2IE 8.0
[ns|attr] { sRules }NamespacedNoNoNoYesYesYesYes
[att^=val] { sRules }Prefix [^=]NoNoNoYesYesYesYes
[att*=val] { sRules }Substring [*=]NoNoNoYesYesYesYes
[att$=val] { sRules }Suffix [$=]NoNoNoYesYesYesYes

Combinators

CSS 2.1:

 

  IE 5.0IE 5.5IE 6.0IE 7.0IE8 Beta 1IE8 Beta 2IE 8.0
E + F { sRules }Adjacent Sibling (+)NoNoNoYesYesYesYes
E > F { sRules }Child (>)NoNoNoYesYesYesYes
E F { sRules }DescendantYesYesYesYesYesYesYes

CSS 3:

  IE 5.0IE 5.5IE 6.0IE 7.0IE8 Beta 1IE8 Beta 2IE 8.0
E ~ F { sRules }General Sibling (~)NoNoNoYesYesYesYes

Pseudo-classes

CSS 2.1:

 

  IE 5.0IE 5.5IE 6.0IE 7.0IE8 Beta 1IE8 Beta 2IE 8.0
:active { sRules }:activeNoNoNoPartialPartialPartialYes
:first-child { sRules }:first-childNoNoNoYesYesYesYes
:focus { sRules }:focusNoNoNoNoYesYesYes
:hover { sRules }:hoverPartialPartialPartialYesYesYesYes
:lang(C) { sRules }:lang()NoNoNoNoYesYesYes
:link { sRules }:linkYesYesYesYesYesYesYes
:visited { sRules }:visitedYesYesYesYesYesYesYes
@page :first { sRules }@page :firstNoNoNoNoNoNoYes
@page :left { sRules }@page :leftNoNoNoNoNoNoYes
@page :right { sRules }@page :rightNoNoNoNoNoNoYes

CSS 3:

 

  IE 5.0IE 5.5IE 6.0IE 7.0IE8 Beta 1IE8 Beta 2IE 8.0
:root { sRules }:rootNoNoNoNoNoNoNo
:nth-child() { sRules }:nth-child()NoNoNoNoNoNoNo
:nth-last-child() { sRules }:nth-last-child()NoNoNoNoNoNoNo
:nth-of-type() { sRules }:nth-of-type()NoNoNoNoNoNoNo
:nth-last-of-type() { sRules }:nth-last-of-type()NoNoNoNoNoNoNo
:last-child { sRules }:last-childNoNoNoNoNoNoNo
:first-of-type { sRules }:first-of-typeNoNoNoNoNoNoNo
:last-of-type { sRules }:last-of-typeNoNoNoNoNoNoNo
:only-child { sRules }:only-childNoNoNoNoNoNoNo
:only-of-type { sRules }:only-of-typeNoNoNoNoNoNoNo
:empty { sRules }:emptyNoNoNoNoNoNoNo
:target { sRules }:targetNoNoNoNoNoNoNo
:not(X) { sRules }:not()NoNoNoNoNoNoNo
:enabled { sRules }:enabledNoNoNoNoNoNoNo
:disabled { sRules }:disabledNoNoNoNoNoNoNo
:checked { sRules }:checkedNoNoNoNoNoNoNo
:indeterminate { sRules }:indeterminateNoNoNoNoNoNoNo
:default { sRules }:defaultNoNoNoNoNoNoNo
:valid { sRules }:validNoNoNoNoNoNoNo
:invalid { sRules }:invalidNoNoNoNoNoNoNo
:in-range { sRules }:in-rangeNoNoNoNoNoNoNo
:out-of-range { sRules }:out-of-rangeNoNoNoNoNoNoNo
:required { sRules }:requiredNoNoNoNoNoNoNo
:optional { sRules }:optionalNoNoNoNoNoNoNo
:read-only { sRules }:read-onlyNoNoNoNoNoNoNo
:read-write { sRules }:read-writeNoNoNoNoNoNoNo

Pseudo-elements

CSS 2.1:

 

  IE 5.0IE 5.5IE 6.0IE 7.0IE8 Beta 1IE8 Beta 2IE 8.0
:after { sRules }:afterNoNoNoNoYesYesYes
:before { sRules }:beforeNoNoNoNoYesYesYes
:first-letter { sRules }:first-letterNoYesYesYesYesYesYes
:first-line { sRules }:first-lineNoYesYesYesYesYesYes

CSS 3:

 

  IE 5.0IE 5.5IE 6.0IE 7.0IE8 Beta 1IE8 Beta 2IE 8.0
::before { sRules }::beforeNoNoNoNoNoNoNo
::after { sRules }::afterNoNoNoNoNoNoNo
::first-letter { sRules }::first-letterNoNoNoNoNoNoNo
::first-line { sRules }::first-lineNoNoNoNoNoNoNo
::selection { sRules }::selectionNoNoNoNoNoNoNo
::value { sRules }::valueNoNoNoNoNoNoNo
::choices { sRules }::choicesNoNoNoNoNoNoNo
::repeat-item { sRules }::repeat-itemNoNoNoNoNoNoNo
::repeat-index { sRules }::repeat-indexNoNoNoNoNoNoNo

Attributes

CSS 2.1:

  IE 5.0IE 5.5IE 6.0IE 7.0IE8 Beta 1IE8 Beta 2IE 8.0
{ sRule!important  }!important Declaration PartialPartialPartialYesYesYesYes

Lists

CSS 2.1:

 

  IE 5.0IE 5.5IE 6.0IE 7.0IE8 Beta 1IE8 Beta 2IE 8.0
{ list-style : sStyle }list-styleYesYesYesYesYesYesYes
{ list-style-image : sStyle }list-style-imageYesYesYesYesYesYesYes
{ list-style-position : sStyle }list-style-positionYesYesYesYesYesYesYes
{ list-style-type : sStyle }list-style-typeNoNoNoPartialYesYesYes

Color and Background

CSS 2.1:

 

  IE 5.0IE 5.5IE 6.0IE 7.0IE8 Beta 1IE8 Beta 2IE 8.0
{ color : sColor }colorYesYesYesYesYesYesYes
{ background : sBackground }backgroundYesYesYesYesYesYesYes
{ background-attachment : sAttachment }background-attachmentPartialPartialPartialYesYesYesYes
{ background-color : sColor }background-colorYesYesYesYesYesYesYes
{ background-image : sLocation }background-imageYesYesYesYesYesYesYes
{ background-position : sPosition }background-positionPartialPartialPartialPartialYesYesYes
{ background-repeat : sRepeat }background-repeatYesYesYesYesYesYesYes

CSS 3:

 

  IE 5.0IE 5.5IE 6.0IE 7.0IE8 Beta 1IE8 Beta 2IE 8.0
{ color-profile : sProfile }color-profileNoNoNoNoNoNoNo
{ rendering-intent : sIntent }rendering-intentNoNoNoNoNoNoNo
{ background : sBackground1,
sBackground2, etc. }
background (multiple)NoNoNoNoNoNoNo
{ background-clip : sClip }background-clipNoNoNoNoNoNoNo
{ background-origin : sOrigin }background-originNoNoNoNoNoNoNo
{ background-break : sBreak }background-breakNoNoNoNoNoNoNo
{ background-size : sSize }background-sizeNoNoNoNoNoNoNo

Font and Text

CSS 2.1:

 

  IE 5.0IE 5.5IE 6.0IE 7.0IE8 Beta 1IE8 Beta 2IE 8.0
{ direction : sDirection }directionYesYesYesYesYesYesYes
{ font : sFont }fontYesYesYesYesYesYesYes
{ font-family : sFamily }font-familyYesYesYesYesYesYesYes
{ font-size : sSize }font-sizeYesYesYesYesYesYesYes
{ font-style : sStyle }font-styleYesYesYesYesYesYesYes
{ font-variant : sVariant }font-variantYesYesYesYesYesYesYes
{ font-weight : sWeight }font-weightPartialPartialPartialPartialPartialYesYes
 { letter-spacing : sSpacing }letter-spacingYesYesYesYesYesYesYes
 { line-height : sHeight }line-heightYesYesYesYesYesYesYes
{ text-align : sAlign }text-align YesYesYesYesYesYesYes
{ text-decoration : sDecoration }text-decoration YesYesYesYesYesYesYes
{ text-indent : sIndent }text-indent YesYesYesYesYesYesYes
{ text-transform : sTransform }text-transform YesYesYesYesYesYesYes
{ unicode-bidi : sAlign }unicode-bidi YesYesYesYesYesYesYes
{ vertical-align : sAlign }vertical-alignYesYesYesYesYesYesYes
{ white-space : sWrap }white-space PartialPartialPartialPartialYesYesYes
{ word-spacing : sSpacing }word-spacing PartialPartialPartialPartialNoYesYes

CSS 3:

 

  IE 5.0IE 5.5IE 6.0IE 7.0IE8 Beta 1IE8 Beta 2IE 8.0
{ font-effect : sEffect }font-effectNoNoNoNoNoNoNo
{ font-emphasize : sEmphasize }font-emphasizeNoNoNoNoNoNoNo
{ font-size-adjust : sSizeAdjust }font-size-adjustNoNoNoNoNoNoNo
{ font-smooth : sSmooth }font-smoothNoNoNoNoNoNoNo
{ font-stretch : sStretch }font-stretchNoNoNoNoNoNoNo
{ hanging-punctuation : sHangingPunctuation }hanging-punctuationNoNoNoNoNoNoNo
{ punctuation-trim : sTrim }punctuation-trim NoNoNoNoNoNoNo
{ ruby-align : sRubyAlign }ruby-alignYesYesYesYesNoYesYes
{ ruby-overhang : sRubyOverhang }ruby-overhangYesYesYesYesNoYesYes
{ ruby-position : sRubyPlacement }ruby-position YesYesYesYesNoYesYes
{ ruby-span : sRubySpan }ruby-spanNoNoNoNoNoNoNo
{ text-align-last : sAlignLast }text-align-last PartialPartialPartialPartialPartialPartialPartial
{ text-emphasis : sEmphasis }text-emphasis NoNoNoNoNoNoNo
{ text-justify : sJustify }text-justify NoYesYesYesYesYesYes
{ text-outline : sOutline }text-outline NoNoNoNoNoNoNo
{ text-overflow : sOverflow}text-overflow NoPartialPartialPartialPartialPartialPartial
{ text-shadow : sShadow }text-shadow NoNoNoNoNoNoNo
{ text-wrap : sWrap }text-wrap NoNoNoNoNoNoNo
{ word-break : sBreak }word-break PartialPartialPartialPartialPartialPartialPartial
{ word-wrap : sWrap }word-wrap YesYesYesYesYesYesYes
{ writing-mode : sFlow }writing-mode YesYesYesYesYesYesYes

Generated Content

CSS 2.1:

 

  IE 5.0IE 5.5IE 6.0IE 7.0IE8 Beta 1IE8 Beta 2IE 8.0
{ content : sContent }contentNoNoNoNoPartialYesYes
{ counter-increment : sCounter }counter-incrementNoNoNoNoPartialYesYes
{ counter-reset : sCounter }counter-resetNoNoNoNoPartialYesYes
{ quotes : sQuotes }quotesNoNoNoNoNoYesYes

Border and Layout

CSS 2.1:

 

  IE 5.0IE 5.5IE 6.0IE 7.0IE8 Beta 1IE8 Beta 2IE 8.0
{ border : sBorder }border YesYesYesYesYesYesYes
{ border-bottom : sBottom }border-bottomNoYesYesYesYesYesYes
{ border-bottom-color : sColor }border-bottom-colorYesYesYesYesYesYesYes
{ border-bottom-style : sStyle }border-bottom-styleNoYesYesYesYesYesYes
{ border-bottom-width : sWidth }border-bottom-widthNoYesYesYesYesYesYes
{ border-collapse : sCollapse }border-collapsePartialPartialPartialPartialYesYesYes
{ border-color : sColor }border-colorYesYesYesYesYesYesYes
{ border-left : sLeft }border-leftNoYesYesYesYesYesYes
{ border-left-color : sColor }border-left-colorYesYesYesYesYesYesYes
{ border-left-style : sStyle }border-left-styleNoYesYesYesYesYesYes
{ border-left-width : sWidth }border-left-widthNoYesYesYesYesYesYes
{ border-right : sRight}border-rightNoYesYesYesYesYesYes
{ border-right-color : sColor }border-right-colorYesYesYesYesYesYesYes
{ border-right-style : sStyle }border-right-styleNoYesYesYesYesYesYes
{ border-right-width : sWidth }border-right-widthNoYesYesYesYesYesYes
{ border-spacing : sSpacing }border-spacingNoNoNoNoYesYesYes
{ border-style : sStyle }border-styleNoPartialPartialPartialYesYesYes
{ border-top : sTop }border-topNoYesYesYesYesYesYes
{ border-top-color : sColor }border-top-colorYesYesYesYesYesYesYes
{ border-top-style : sStyle }border-top-styleNoYesYesYesYesYesYes
{ border-top-width : sWidth }border-top-widthNoYesYesYesYesYesYes
{ border-width : sWidth }border-widthYesYesYesYesYesYesYes
{ caption-side : sLocation }caption-sideNoNoNoNoYesYesYes
{ clear : sClear }clearYesYesYesYesYesYesYes
{ empty-cells : sEmptyCells }empty-cellsNoNoNoPartialPartialYesYes
{ float : sFloat }floatYesYesYesYesYesYesYes
{ margin : sMargin }marginYesYesYesYesYesYesYes
{ margin-bottom : sHeight }margin-bottomYesYesYesYesYesYesYes
{ margin-left : sWidth }margin-leftYesYesYesYesYesYesYes
{ margin-right : sWidth }margin-rightYesYesYesYesYesYesYes
{ margin-top : sHeight }margin-topYesYesYesYesYesYesYes
{ padding : sPadding }paddingYesYesYesYesYesYesYes
{ padding-bottom : sPadding }padding-bottomYesYesYesYesYesYesYes
{ padding-left : sPadding }padding-leftYesYesYesYesYesYesYes
{ padding-right : sPadding }padding-rightYesYesYesYesYesYesYes
{ padding-top : sPadding }padding-topYesYesYesYesYesYesYes
{ table-layout : sLayout }table-layoutYesYesYesYesYesYesYes

CSS 3:

 

  IE 5.0IE 5.5IE 6.0IE 7.0IE8 Beta 1IE8 Beta 2IE 8.0
{ border-break : sBreak }border-breakNoNoNoNoNoNoNo
{ border-image : sImage }border-imageNoNoNoNoNoNoNo
{ border-radius : sRadius }border-radiusNoNoNoNoNoNoNo
{ box-shadow : sShadow }box-shadow NoNoNoNoNoNoNo

Positioning

CSS 2.1:

 

  IE 5.0IE 5.5IE 6.0IE 7.0IE8 Beta 1IE8 Beta 2IE 8.0
{ bottom : sBottom }bottom NoPartialPartialPartialPartialYesYes
{ clip : sClip }clip NoYesYesYesYesYesYes
{ display : sDisplay }display PartialPartialPartialPartialPartialYesYes
{ height : sHeight }heightYesYesYesYesYesYesYes
{ left : sPosition }leftNoPartialPartialPartialPartialYesYes
{ max-height : sMaxHeight }max-height NoNoNoYesYesYesYes
{ max-width : sWidth }max-widthNoNoNoYesYesYesYes
{ min-height : sMinHeight }min-height NoNoNoYesYesYesYes
{ min-width : sMinWidth }min-widthNoNoNoYesYesYesYes
{ overflow : sOverflow }overflowPartialPartialPartialYesYesYesYes
{ position : sPosition }position PartialPartialPartialYesYesYesYes
{ right : sPosition }rightNoPartialPartialPartialPartialYesYes
{ top : sTop }topNoPartialPartialPartialPartialYesYes
{ visibility : sVisibility }visibilityYesYesYesYesYesYesYes
{ width : sWidth }widthYesYesYesYesYesYesYes
{ z-index : vOrder }z-indexPartialPartialPartialPartialPartialYesYes

CSS 3:

 

  IE 5.0IE 5.5IE 6.0IE 7.0IE8 Beta 1IE8 Beta 2IE 8.0
{ overflow-x : sOverflow }overflow-xPartialPartialPartialYesYesYesYes
{ overflow-y : sOverflow }overflow-yPartialPartialPartialYesYesYesYes

Printing

CSS 2.1:

 

  IE 5.0IE 5.5IE 6.0IE 7.0IE8 Beta 1IE8 Beta 2IE 8.0
{ orphans : nLines }orphansNoNoNoNoNoYesYes
{ page-break-after : sBreak }page-break-afterYesYesYesYesNoYesYes
{ page-break-before : sBreak }page-break-beforeYesYesYesYesNoYesYes
{ page-break-inside : sBreak }page-break-insideNoNoNoNoNoYesYes
{ widows : nLines }widowsNoNoNoNoNoYesYes

CSS 3:

 

  IE 5.0IE 5.5IE 6.0IE 7.0IE8 Beta 1IE8 Beta 2IE 8.0
{ fit : sFit }fitNoNoNoNoNoNoNo
{ fit-position : sPosition }fit-positionNoNoNoNoNoNoNo
{ image-orientation : sOrientation }image-orientation NoNoNoNoNoNoNo
{ page : sPage }pageNoNoNoNoNoNoNo
{ size : sSize }sizeNoNoNoNoNoNoNo

User Interface

CSS 2.1:

 

  IE 5.0IE 5.5IE 6.0IE 7.0IE8 Beta 1IE8 Beta 2IE 8.0
{ cursor : sCursor }cursorNoYesYesYesNoYesYes
{ outline : sOutline }outlineNoNoNoNoYesYesYes
{ outline-color : sColor }outline-colorNoNoNoNoYesYesYes
{ outline-style : sStyle }outline-styleNoNoNoNoYesYesYes
{ outline-width : sWidth }outline-widthNoNoNoNoYesYesYes

CSS 3:

 

  IE 5.0IE 5.5IE 6.0IE 7.0IE8 Beta 1IE8 Beta 2IE 8.0
{ appearance : sAppearance }appearance NoNoNoNoNoNoNo
{ box-sizing : sSizing }box-sizingNoNoNoNoYesYesYes
{ icon : sIcon }iconNoNoNoNoNoNoNo
{ nav-down : sNavDown }nav-downNoNoNoNoNoNoNo
{ nav-index : sIndex }nav-index NoNoNoNoNoNoNo
{ nav-left : sNavLeft }nav-leftNoNoNoNoNoNoNo
{ nav-right : sNavRight }nav-rightNoNoNoNoNoNoNo
{ nav-up : sNavUp }nav-upNoNoNoNoNoNoNo
{ outline-offset : sOffset }outline-offsetNoNoNoNoNoNoNo
{ outline-radius : sRadius }outline-radiusNoNoNoNoNoNoNo
{ resize : sResize }resizeNoNoNoNoNoNoNo

Multi-column Layout

 

CSS 3:

 

  IE 5.0IE 5.5IE 6.0IE 7.0IE8 Beta 1IE8 Beta 2IE 8.0
{ column-break-after : sSize }column-break-after NoNoNoNoNoNoNo
{ column-break-before : sSize }column-break-before NoNoNoNoNoNoNo
{ column-break-inside : sSize }column-break-inside NoNoNoNoNoNoNo
{ column-count : sCount }column-count NoNoNoNoNoNoNo
{ column-gap : sSize }column-gapNoNoNoNoNoNoNo
{ column-rule : sRule }column-ruleNoNoNoNoNoNoNo
{ columns : sColumns }columnsNoNoNoNoNoNoNo

IE5,IE6,IE7,IE8的css兼容性列表[转自MSDN]