最近部門業務網站須要考慮IE8的兼容性,恰好查到MSDN上有IE系列瀏覽器對CSS兼容性的完整清單,把其中IE8部分的內容翻譯了出來,做爲備忘。html
原文連接:CSS Compatibility in Internet Explorer瀏覽器
============================正文分割線============================ide
IE8對於CSS2.1是完整支持的,對於CSS3則只是部分支持。下文中只列出IE8徹底支持及徹底不支持的樣式。函數
注:下文中的E、F均指html標籤名,如div,img等。佈局
支持:@charset, @import, @media, @page, @font-face字體
支持:.value, #value, E, *動畫
支持:[att=val], [att], [att|=val], [att~=val]網站
支持:E + F, E > F, E F(CSS2.1)url
支持:E ~ F (CSS3)spa
支持::active, :first-child, :focus, :hover, :lang(C), :link, :visited, @page :first, @page :left, @page :right
支持::after, :before, :first-letter, :first-line
支持:!important
不支持:transform全系列, perspective全系列, backface-visibility
不支持:animation全系列
支持:border系列(除了border-break, border-image, border-radius), caption-side, clear, empty-cells, float, margin全系列, padding全系列, table-layout
支持:color, background, background-attachment, background-color, background-image, background-position, background-repeat
支持:direction, font, font-family, font-size, font-style, font-variant, font-weight, letter-spacing, line-height, text-align, text-decoration, text-indent, text-transform, unicode-bidi, vertical-align, white-space, word-spacing
支持:content, counter-increment, counter-reset, quotes
支持:list-style全系列
支持:bottom, clip, display, height, left, max-height, max-width, min-height, min-width, overflow, overflow-x, overflow-y, position, right, top, visibility, width, z-index
支持:orphans, page-break-after, page-break-before, page-break-inside, widows
不支持:transition全系列
支持:cursor, outline, outline-color, outline-style, outline-width
不支持
不支持
支持:<number>, <length>, <percentage>, <integer>
支持:<string>, code
支持:rect()
支持:url(), counter(), attr()
不支持
支持:<color> (names), <color> (#rrggbb or #rgb), <color> (rgb(r,g,b)), <color> (system colors), transparent
支持:auto, inherit
支持:px, pt, pc, cm, mm, in, em, ex, %