以下的表格顯示一些瀏覽器引擎對於CSS的兼容性與支援的比較。想獲得更多訊息,請參照各產品的項目。此項目不見得包含所有的功能也不見得有最新消息。除非以附註指出特例,這裡以未加裝任何套件或是其他程式的穩定版本進行比較。
這裡使用後端的引擎名而不是瀏覽器的名稱。使用各瀏覽器引擎的瀏覽器如下表所示。
以下各格的顏色表示該排版引擎的最新版本或指定版本(如果给出版本号的话)對該功能的支援程度。没有取值的版本號表示该排版引擎首次完全支援該功能。
想了解各版本的CSS差異,請參考項目CSS。 本表格不以CSS2.0為準,因為存在取代它的CSS2.1。CSS2.1修正了部份CSS2.0的錯誤,刪除了不被CSS社區接受的功能。大部分被刪除的功能將會出現在CSS3。
!important
/*Comment*/
@import
@charset
@media
@page
@namespace
@document
@keyframes
@font-face
@supports
@phonetic-alphabet
@region
@counter-style
@top-left-corner
@top-left
@top-center
@top-right
@top-right-corner
@bottom-left-corner
@bottom-left
@bottom-center
@bottom-right
@bottom-right-corner
@left-top
@left-middle
@left-bottom
@right-top
@right-middle
@right-bottom
@import <URL> <MEDIA>
<URL> <MEDIA>
url()
*
E
E.class
E#id
ns|E
E F
E > F
E + F
E ~ F
E /for/ F
E! > F
E[attr]
E[attr="value"]
E[attr~="value"]
E[attr|="value"]
E[attr^="value"]
E[attr$="value"]
E[attr*="value"]
E[ns|attr]
E:link
E:visited
E:active
E:hover
E:focus
E:first-child
E:lang()
@page:first
@page:left
@page:right
E:root
E:not()
E:empty
E:first-of-type
E:last-child
E:last-of-type
E:only-child
E:only-of-type
E:nth-child
E:nth-last-child
E:nth-of-type
E:nth-last-of-type
E:target
E:enabled
E:disabled
E:checked
E:indeterminate
E:default
E:valid
E:invalid
E:in-range
E:out-of-range
E:required
E:optional
E:read-only
E:read-write
E:not(s1, s2)
E:matches(s1, s2)
E[foo="bar" i]
E:dir(ltr)
E:lang(zh, *-hant)
E:any-link
E:local-link
E:local-link(0)
E:scope
E:current
E:current(s)
E:past
E:future
E:nth-match(n of selector)
E:nth-last-match(n of selector)
E:column(selector)
E:nth-column(n)
E:nth-last-column(n)
E:first-letter
E:first-line
E:before
E:after
E::before
E::after
E::first-letter
E::first-line
E::selection
E::marker
E::value
contenteditable
.two
colspan
td
th
:first-letter
:first-line
lang
text-transform
(:):before/after
:before
:after
margin
padding
width
height
float
clear
display
min-width
max-width
min-height
max-height
clip
overflow
visibility
overflow-x
overflow-y
border
border-color
border-style
border-width
border-top
border-right
border-bottom
border-left
border-radius
border-image
border-image-source
border-image-slice
border-image-width
border-image-outside
border-image-repeat
box-shadow
box-decoration-break
line-height
vertical-align
position
top
right
bottom
left
z-index
quotes
content
counter-increment
counter-reset
list-style
list-style-image
list-style-position
list-style-type
color
opacity
background
background-attachment
background-color
background-image
background-position
background-repeat
background (多重)
background-clip
background-origin
background-size
font
font-family
font-size
font-style
font-variant
font-weight
font-size-adjust
font-stretch
font-feature-settings
font-kerning
font-language-override
font-synthesis
font-variant-alternates
font-variant-caps
font-variant-east-asian
font-variant-ligatures
font-variant-numeric
font-variant-position
unicode-range
text-align
text-decoration
text-indent
letter-spacing
word-spacing
white-space
text-overflow
word-break
text-wrap
word-wrap
text-align-last
text-justify
punctuation-trim
text-outline
hanging-punctuation
hyphenate-character
hyphenate-limit-zone
hyphenate-limit-chars
hyphenate-limit-lines
hyphenate-limit-last
text-shadow
text-decoration-style
text-decoration-color
text-decoration-line
text-decoration-skip
text-underline-position
text-emphasis-style
text-emphasis-color
text-emphasis
text-emphasis-position
direction
unicode-bidi
writing-mode
text-combine
border-collapse
border-spacing
caption-side
empty-cells
table-layout
cursor
outline
outline-color
outline-style
outline-width
outline-offset
box-sizing
resize
appearance
icon
nav-index
nav-up
nav-right
nav-down
nav-left
page-break-before
page-break-after
page-break-inside
orphans
widows
page
size
image-orientation
object-fit
object-position
cue
cue-after
cue-before
pause
pause-after
pause-before
speak
voice-family
voice-balance
voice-duration
voice-pitch
voice-pitch-range
voice-rate
voice-stress
voice-volume
interpret-as
phonemes
rest
rest-after
rest-before
mark
mark-after
mark-before
device-width
device-height
device-aspect-ratio
color-index
monochrome
resolution
orientation
aspect-ratio
grid
scan
ruby-position
ruby-align
ruby-overhang
ruby-span
column-count
column-width
column-gap
column-rule
columns
break-before
break-after
break-inside
column-fill
column-span
animation
animation-delay
animation-direction
animation-duration
animation-iteration-count
animation-name
animation-play-state
animation-timing-function
animation-fill-mode
transform
transform-origin
transform-style
perspective
perspective-origin
backface-visibility
transition-property
transition-duration
transition-timing-function
transition-delay
transition
box-align
box-direction
box-flex
box-flex-group
box-lines
box-ordinal-group
box-orient
box-pack
marquee-direction
marquee-play-count
marquee-speed
marquee-style
overflow-style
inherit
none
block
inline
table-header-group
table-footer-group
run-in
table
inline-block
overflow: visible;
scroll
visibility: collapse;
visibility: hidden;
visibility: visible;
attr()
transparent
hidden
dotted
dashed
armenian
decimal-leading-zero
georgian
lower-greek
lower-latin
upper-latin
fixed
body
pre
pre-line
pre-wrap
lr-tb
tb-rl
tb-lr
inline-table
-moz-pre-wrap
collapse
always
auto
open-quote
close-quote
no-open-quote
no-close-quote
normal
<number>
<length>
<percentage>
<integer>
<angle>
<time>
<frequency>
<fraction>
<string>
\code
rect()
counter()
calc()
#rrggbb或#rgb
rgb(r, g, b)
系統顏色
currentColor
rgba(r, g, b, a)
hsl(h, s, l)
hsla(h, s, l, a)
<url>
<sprite>
<image-list>
<linear-gradient>
<radial-gradient>
linear-gradient()
radial-gradient()
repeating-linear-gradient()
repeating-radial-gradient()
initial
px
pt
pc
cm
mm
in
em
ex
%
deg
grad
rad
turn
ms
s
Hz
kHz
dpi
dpcm
dppx
gd
fr
rem
vw
vh
vm
ch
CSS1引入了「transparent」當作「background-color」的一個值。 (页面存档备份,存于互联网档案馆) CSS2開始允許「border-color」使用「transparent」。《Open eBook(tm) Publication Structure 1.0.1》[OEB101]擴張了「color」屬性使其也吃關鍵字「transparent」。CSS3擴張了顏色的取值使其包含關鍵字「transparent」,使得所有吃<value>的屬性都可以使用這個值,這也簡化了這些屬性在CSS3的定義。
-ms-
-ms-interpolation-mode
interpolation-mode
-moz-
::-moz-selection
::selection
-webkit-
-webkit-box-shadow
-khtml-
-khtml-opacity
-o-
-o-transition-property
-xv-
-xv-voice-rate
element.style.MozBorderRadius
-moz-border-radius
element.style.OTransform
-o-transform
Lokasi Pengunjung: 3.21.97.217