附录 F. 完整的属性表

本附录是信息性的,而不是规范性的。

名称 初始值 适用于
(默认: 全部)
是否继承? 百分比
(默认: 不适用)
媒体组
'azimuth' <angle> | [[ left-side | far-left | left | center-left | center | center-right | right | far-right | right-side ] || behind ] | leftwards | rightwards | inherit center   yes   aural
'background-attachment' scroll | fixed | inherit scroll   no   visual
'background-color' <color> | transparent | inherit transparent   no   visual
'background-image' <uri> | none | inherit none   no   visual
'background-position' [ [ <percentage> | <length> | left | center | right ] [ <percentage> | <length> | top | center | bottom ]? ] | [ [ left | center | right ] || [ top | center | bottom ] ] | inherit 0% 0%   no 参考盒子自身的大小 visual
'background-repeat' repeat | repeat-x | repeat-y | no-repeat | inherit repeat   no   visual
'background' ['background-color' || 'background-image' || 'background-repeat' || 'background-attachment' || 'background-position'] | inherit 参考单个属性   no 允许用于 'background-position' visual
'border-collapse' collapse | separate | inherit separate 'table' 和 'inline-table' 元素 yes   visual
'border-color' [ <color> | transparent ]{1,4} | inherit 参考单个属性   no   visual
'border-spacing' <length> <length>? | inherit 0 'table' 和 'inline-table' 元素  yes   visual
'border-style' <border-style>{1,4} | inherit 参考单个属性   no   visual
'border-top' 'border-right' 'border-bottom' 'border-left' [ <border-width> || <border-style> || 'border-top-color' ] | inherit 参考单个属性   no   visual
'border-top-color' 'border-right-color' 'border-bottom-color' 'border-left-color' <color> | transparent | inherit 参考 'color' 属性的值   no   visual
'border-top-style' 'border-right-style' 'border-bottom-style' 'border-left-style' <border-style> | inherit none   no   visual
'border-top-width' 'border-right-width' 'border-bottom-width' 'border-left-width' <border-width> | inherit medium   no   visual
'border-width' <border-width>{1,4} | inherit 参考单个属性   no   visual
'border' [ <border-width> || <border-style> || 'border-top-color' ] | inherit 参考单个属性   no   visual
'bottom' <length> | <percentage> | auto | inherit auto 定位元素 no 参考包含块的高度 visual
'caption-side' top | bottom | inherit top 'table-caption' 元素 yes   visual
'clear' none | left | right | both | inherit none 块级元素 no   visual
'clip' <shape> | auto | inherit auto 绝对定位的元素 no   visual
'color' <color> | inherit 取决于用户代理   yes   visual
'content' normal | none | [ <string> | <uri> | <counter> | attr(<identifier>) | open-quote | close-quote | no-open-quote | no-close-quote ]+ | inherit normal :before 和 :after 伪元素 no   all
'counter-increment' [ <identifier> <integer>? ]+ | none | inherit none   no   all
'counter-reset' [ <identifier> <integer>? ]+ | none | inherit none   no   all
'cue-after' <uri> | none | inherit none   no   aural
'cue-before' <uri> | none | inherit none   no   aural
'cue' [ 'cue-before' || 'cue-after' ] | inherit 参考单个属性   no   aural
'cursor' [ [<uri> ,]* [ auto | crosshair | default | pointer | move | e-resize | ne-resize | nw-resize | n-resize | se-resize | sw-resize | s-resize | w-resize | text | wait | help | progress ] ] | inherit auto   yes   visual, interactive
'direction' ltr | rtl | inherit ltr 所有元素, 但参见文本 yes   visual
'display' inline | block | list-item | inline-block | table | inline-table | table-row-group | table-header-group | table-footer-group | table-row | table-column-group | table-column | table-cell | table-caption | none | inherit inline   no   all
'elevation' <angle> | below | level | above | higher | lower | inherit level   yes   aural
'empty-cells' show | hide | inherit show 'table-cell' 元素 yes   visual
'float' left | right | none | inherit none 全部,但参见9.7 no   visual
'font-family' [[ <family-name> | <generic-family> ] [, [ <family-name>| <generic-family>] ]* ] | inherit 取决于用户代理   yes   visual
'font-size' <absolute-size> | <relative-size> | <length> | <percentage> | inherit medium   yes 参考继承的字体大小 visual
'font-style' normal | italic | oblique | inherit normal   yes   visual
'font-variant' normal | small-caps | inherit normal   yes   visual
'font-weight' normal | bold | bolder | lighter | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | inherit normal   yes   visual
'font' [ [ 'font-style' || 'font-variant' || 'font-weight' ]? 'font-size' [ / 'line-height' ]? 'font-family' ] | caption | icon | menu | message-box | small-caption | status-bar | inherit 参考单个属性   yes 参考单个属性 visual
'height' <length> | <percentage> | auto | inherit auto 所有元素,但非替换的内联元素、表列和列组除外 no 参见文本 visual
'left' <length> | <percentage> | auto | inherit auto 定位元素 no 参考包含块的宽度 visual
'letter-spacing' normal | <length> | inherit normal   yes   visual
'line-height' normal | <number> | <length> | <percentage> | inherit normal   yes 参考元素自身的字体大小 visual
'list-style-image' <uri> | none | inherit none 具有 'display: list-item' 的元素 yes   visual
'list-style-position' inside | outside | inherit outside 具有 'display: list-item' 的元素 yes   visual
'list-style-type' disc | circle | square | decimal | decimal-leading-zero | lower-roman | upper-roman | lower-greek | lower-latin | upper-latin | armenian | georgian | lower-alpha | upper-alpha | none | inherit disc 具有 'display: list-item' 的元素 yes   visual
'list-style' [ 'list-style-type' || 'list-style-position' || 'list-style-image' ] | inherit 参考单个属性 具有 'display: list-item' 的元素 yes   visual
'margin-right' 'margin-left' <margin-width> | inherit 0 所有元素,除了 display 属性为 table-caption、table 和 inline-table 之外的表格显示类型的元素 no 参考包含块的宽度 visual
'margin-top' 'margin-bottom' <margin-width> | inherit 0 所有元素,除了 display 属性为 table-caption、table 和 inline-table 之外的表格显示类型的元素 no 参考包含块的宽度 visual
'margin' <margin-width>{1,4} | inherit 参考单个属性 所有元素,除了 display 属性为 table-caption、table 和 inline-table 之外的表格显示类型的元素 no 参考包含块的宽度 visual
'max-height' <length> | <percentage> | none | inherit none 所有元素,但非替换的内联元素、表列和列组除外 no 参见文本 visual
'max-width' <length> | <percentage> | none | inherit none 所有元素,但非替换的内联元素、表行和行组除外 no 参考包含块的宽度 visual
'min-height' <length> | <percentage> | inherit 0 所有元素,但非替换的内联元素、表列和列组除外 no 参见文本 visual
'min-width' <length> | <percentage> | inherit 0 所有元素,但非替换的内联元素、表行和行组除外 no 参考包含块的宽度 visual
'orphans' <integer> | inherit 2 块容器元素 yes   visual, paged
'outline-color' <color> | invert | inherit invert   no   visual, interactive
'outline-style' <border-style> | inherit none   no   visual, interactive
'outline-width' <border-width> | inherit medium   no   visual, interactive
'outline' [ 'outline-color' || 'outline-style' || 'outline-width' ] | inherit 参考单个属性   no   visual, interactive
'overflow' visible | hidden | scroll | auto | inherit visible 块容器和建立格式化上下文的盒子 no   visual
'padding-top' 'padding-right' 'padding-bottom' 'padding-left' <padding-width> | inherit 0 所有元素,除了表行组、表头组、表尾组、表行、表列组和表列 no 参考包含块的宽度 visual
'padding' <padding-width>{1,4} | inherit 参考单个属性 所有元素,除了表行组、表头组、表尾组、表行、表列组和表列 no 参考包含块的宽度 visual
'page-break-after' auto | always | avoid | left | right | inherit auto 块级元素 (但参见文本) no   visual, paged
'page-break-before' auto | always | avoid | left | right | inherit auto 块级元素 (但参见文本) no   visual, paged
'page-break-inside' avoid | auto | inherit auto 块级元素 (但参见文本) no   visual, paged
'pause-after' <time> | <percentage> | inherit 0   no 参见文本 aural
'pause-before' <time> | <percentage> | inherit 0   no 参见文本 aural
'pause' [ [<time> | <percentage>]{1,2} ] | inherit 参考单个属性   no 参见 'pause-before' 和 'pause-after' 的描述 aural
'pitch-range' <number> | inherit 50   yes   aural
'pitch' <frequency> | x-low | low | medium | high | x-high | inherit medium   yes   aural
'play-during' <uri> [ mix || repeat ]? | auto | none | inherit auto   no   aural
'position' static | relative | absolute | fixed | inherit static   no   visual
'quotes' [<string> <string>]+ | none | inherit 取决于用户代理   yes   visual
'richness' <number> | inherit 50   yes   aural
'right' <length> | <percentage> | auto | inherit auto 定位元素 no 参考包含块的宽度 visual
'speak-header' once | always | inherit once 具有表头信息的元素 yes   aural
'speak-numeral' digits | continuous | inherit continuous   yes   aural
'speak-punctuation' code | none | inherit none   yes   aural
'speak' normal | none | spell-out | inherit normal   yes   aural
'speech-rate' <number> | x-slow | slow | medium | fast | x-fast | faster | slower | inherit medium   yes   aural
'stress' <number> | inherit 50   yes   aural
'table-layout' auto | fixed | inherit auto 'table' 和 'inline-table' 元素 no   visual
'text-align' left | right | center | justify | inherit 一个无名值,作用类似于 'left' 当 'direction' 是 'ltr' 时, 类似于 'right' 当 'direction' 是 'rtl' 时 块容器 yes   visual
'text-decoration' none | [ underline || overline || line-through || blink ] | inherit none   no (参见文本)   visual
'text-indent' <length> | <percentage> | inherit 0 块容器 yes 参考包含块的宽度 visual
'text-transform' capitalize | uppercase | lowercase | none | inherit none   yes   visual
'top' <length> | <percentage> | auto | inherit auto 定位元素 no 参考包含块的高度 visual
'unicode-bidi' normal | embed | bidi-override | inherit normal 所有元素, 但参见文本 no   visual
'vertical-align' baseline | sub | super | top | text-top | middle | bottom | text-bottom | <percentage> | <length> | inherit baseline 内联级和 'table-cell' 元素 no 参考元素自身的 'line-height' visual
'visibility' visible | hidden | collapse | inherit visible   yes   visual
'voice-family' [[<specific-voice> | <generic-voice> ],]* [<specific-voice> | <generic-voice> ] | inherit 取决于用户代理   yes   aural
'volume' <number> | <percentage> | silent | x-soft | soft | medium | loud | x-loud | inherit medium   yes 参考继承的值 aural
'white-space' normal | pre | nowrap | pre-wrap | pre-line | inherit normal   yes   visual
'widows' <integer> | inherit 2 块容器元素 yes   visual, paged
'width' <length> | <percentage> | auto | inherit auto 所有元素,但非替换的内联元素、表行和行组除外 no 参考包含块的宽度 visual
'word-spacing' normal | <length> | inherit normal   yes   visual
'z-index' auto | <integer> | inherit auto 定位元素 no   visual