IE8 CSS 樣式兼容性清單

最近部門業務網站須要考慮IE8的兼容性,恰好查到MSDN上有IE系列瀏覽器對CSS兼容性的完整清單,把其中IE8部分的內容翻譯了出來,做爲備忘。html

原文連接:CSS Compatibility in Internet Explorer瀏覽器

============================正文分割線============================ide

IE8對於CSS2.1是完整支持的,對於CSS3則只是部分支持。下文中只列出IE8徹底支持徹底不支持的樣式。函數

注:下文中的E、F均指html標籤名,如div,img等。佈局

At-rules At類規則

支持:@charset, @import, @media, @page, @font-face字體

Selectors 選擇器

Element Selectors 元素選擇器

支持:.value, #value, E, *動畫

Attribute Selectors 屬性選擇器

支持:[att=val], [att], [att|=val], [att~=val]網站

Combinators 聯合選擇器

支持:E + F, E > F, E F(CSS2.1)url

支持:E ~ F (CSS3)spa

Pseudo-classes 僞類

支持::active, :first-child, :focus, :hover, :lang(C), :link, :visited, @page :first, @page :left, @page :right

Pseudo-elements 僞元素

支持::after, :before, :first-letter, :first-line

Properties 屬性

支持:!important

2-D and 3-D Transforms 2D、3D效果

不支持:transform全系列, perspective全系列, backface-visibility

Animations 動畫

不支持:animation全系列

Border and Layout 邊框和佈局

支持:border系列(除了border-break, border-image, border-radius), caption-side, clear, empty-cells, float, margin全系列, padding全系列, table-layout

Color and Background 顏色和背景

支持:color, background, background-attachment, background-color, background-image, background-position, background-repeat

Font and Text 字體和文本

支持: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

Generated Content 生成內容

支持:content, counter-increment, counter-reset, quotes

Lists 列表

支持:list-style全系列

Positioning 定位

支持: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

Printing 打印

支持:orphans, page-break-after, page-break-before, page-break-inside, widows

Transitions 平滑漸變/過渡

不支持:transition全系列

User Interface 用戶界面

支持:cursor, outline, outline-color, outline-style, outline-width

Speech 朗讀

不支持

Media Queries 媒體查詢

不支持

Values 值

Numbers 數字

支持:<number>, <length>, <percentage>, <integer>

Strings 字符串

支持:<string>, code

Shapes 形狀

支持:rect()

Functions 函數

支持:url(), counter(), attr()

Gradients 梯度

不支持

Colors 顏色

支持:<color> (names), <color> (#rrggbb or #rgb), <color> (rgb(r,g,b)), <color> (system colors), transparent

Keywords 關鍵字

支持:auto, inherit

Units 單位

支持:px, pt, pc, cm, mm, in, em, ex, %

相關文章
相關標籤/搜索