字型 | ||||
性|名Q | 可用值 | 作用 | 是否可^承 | %百分比 |
font-family | [[<family-name> | <generic-family>],]* [<family-name> | <generic-family>] AO值:依g[器而定 | 所有元素 | 是 | 不可使用 |
font-style | normal | italic | oblique | 所有元素 | 是 | 不可使用 |
font-variant | normal | small-caps | 所有元素 | 是 | 不可使用 |
font-weight | normal | bold | bolder | lighter | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 所有元素 | 是 | 不可使用 |
font-size | <absolute-size> | <relative-size> | <length> | <percentage> AO值:medium | 所有元素 | 是 | 相队H元素的字形尺寸 |
font (性|) | [<font-style> || <font-variant> || <font-weight>]? <font-size> [/<line-height>]? <font-family> AO值:未定x | 所有元素 | 是 | 可使用在 <font-size> c <line-height> 刹糠 |
色c背景 | ||||
性|名Q | 可用值 | 作用 | 是否可^承 | %百分比 |
color | <color> AO值:依g[器而定 | 所有元素 | 是 | 不可使用 |
background-color | transparent | <color> | 所有元素 | 否 | 不可使用 |
background-image | none | <url> | 所有元素 | 否 | 不可使用 |
background-repeat | repeat | repeat-x | repeat-y | no-repeat | 所有元素 | 否 | 不可使用 |
background-attachment | scroll | fixed | 所有元素 | 否 | 不可使用 |
background-position | [<percentage> | <length>]{1,2} | [top | center | bottom] || [left | center | right] AO值:0% 0% | ^K等c替代元素 | 否 | 相对元素本身的尺寸大小 |
background (性|) | <background-color> || <background-image> || <background-repeat> || <background-attachment> || <background-position> AO值:未定x | 所有元素 | 否 | 可使用在 <background- position> |
文字 | ||||
性|名Q | 可用值 | 作用 | 是否可^承 | %百分比 |
word-spacing | normal | <length> | 所有元素 | 是 | 不可使用 |
letter-spacing | normal | <length> | 所有元素 | 是 | 不可使用 |
text-decoration | none | [underline || overline || line-through || blink] AO值:none | 所有元素 | 否 | 不可使用 |
vertical-align | baseline | sub | super | top | text-top | middle | bottom | text-bottom | <percentage> | 行仍 | 否 | 相对元素本身的行高 |
text-transform | none | capitalize | uppercase | lowercase | 所有元素 | 是 | 不可使用 |
text-align | left | right | center | justify AO值:依g[器而定 | ^K等元素 | 是 | 不可使用 |
text-indent | <length> | <percentage> AO值:0 | ^K等元素 | 是 | 相队H元素的度 |
line-height | normal | <number> | <length> | <percentage> | 所有元素 | 是 | 相对元素本身的字型尺寸大小 |
^K | ||||
性|名Q | 可用值 | 作用 | 是否可^承 | %百分比 |
margin-top | <length> | <percentage> | auto AO值:0 | 所有元素 | 否 | 相队H元素的度 |
margin-right | <length> | <percentage> | auto AO值:0 | 所有元素 | 否 | 相队H元素的度 |
margin-bottom | <length> | <percentage> | auto AO值:0 | 所有元素 | 否 | 相队H元素的度 |
margin-left | <length> | <percentage> | auto AO值:0 | 所有元素 | 否 | 相队H元素的度 |
margin (性|) | [<length> | <percentage> | auto]{1,4} AO值:未定x | 所有元素 | 否 | 相队H元素的度 |
padding-top | <length> | <percentage> AO值:0 | 所有元素 | 否 | 相队H元素的度 |
padding-right | <length> | <percentage> AO值:0 | 所有元素 | 否 | 相队H元素的度 |
padding-bottom | <length> | <percentage> AO值:0 | 所有元素 | 否 | 相队H元素的度 |
padding-left | <length> | <percentage> AO值:0 | 所有元素 | 否 | 相队H元素的度 |
padding | [<length> | <percentage>]{1,4} AO值:0 | 所有元素 | 否 | 相队H元素的度 |
border-top-width | medium | thin | thick | <length> | 所有元素 | 否 | 不可使用 |
border-right-width | medium | thin | thick | <length> | 所有元素 | 否 | 不可使用 |
border-bottom-width | medium | thin | thick | <length> | 所有元素 | 否 | 不可使用 |
border-left-width | medium | thin | thick | <length> | 所有元素 | 否 | 不可使用 |
border-width (性|) | [thin | medium | thick | <length>]{1,4} AO值:未定x | 所有元素 | 否 | 不可使用 |
border-color | <color>{1,4} AO值:「color」性|的值 | 所有元素 | 否 | 不可使用 |
border-style | none | dotted | dashed | solid | double | groove | ridge | inset | outset | 所有元素 | 否 | 不可使用 |
border-top (性|) | <border-top-width> || <border-style> || <color> AO值:未定x | 所有元素 | 否 | 不可使用 |
border-right (性|) | <border-right-width> || <border-style> || <color> AO值:未定x | 所有元素 | 否 | 不可使用 |
border-bottom (性|) | <border-bottom-width> || <border-style> || <color> AO值:未定x | 所有元素 | 否 | 不可使用 |
border-left (性|) | <border-left-width> || <border-style> || <color> AO值:未定x | 所有元素 | 否 | 不可使用 |
border (性|) | <border-width> || <border-style> || <color> AO值:未定x | 所有元素 | 否 | 不可使用 |
width | auto | <length> | <percentage> | ^K等c替代元素 | 否 | 相队H元素的度 |
height | auto | <length> | ^K等c替代元素 | 否 | 不可使用 |
float | none | left | right | 所有元素 | 否 | 不可使用 |
clear | none | left | right | both | 所有元素 | 否 | 不可使用 |
分 | ||||
性|名Q | 可用值 | 作用 | 是否可^承 | %百分比 |
display | block | inline | list-item | none | 所有元素 | 否 | 不可使用 |
white-space | normal | pre | nowrap | ^K等元素 | 是 | 不可使用 |
list-style-type | disc | circle | square | decimal | lower-roman | upper-roman | lower-alpha | upper-alpha | none | 所有「display」性|的值是「list-item」的元素 | 是 | 不可使用 |
list-style-image | none | <url> | 所有「display」性|的值是「list-item」的元素 | 是 | 不可使用 |
list-style-position | outside | inside | 所有「display」性|的值是「list-item」的元素 | 是 | 不可使用 |
list-style (性|) | <keyword> || <position> || <url> AO值:未定x | 所有「display」性|的值是「list-item」的元素 | 是 | 不可使用 |
定位 | ||||
性|名Q | 可用值 | 作用 | 是否可^承 | %百分比 |
position | static | absolute | relative | 所有元素 | 否 | 不可使用 |
left | auto | <length> | <percentage> | 所有「position」性|的值是「absolute」或者「relative」的元素 | 否 | 相队H元素的度c高度。如果H元素的高度的值是「auto」,t百分比型式的值槲炊x |
top | auto | <length> | <percentage> | 所有「position」性|的值是「absolute」或者「relative」的元素 | 否 | 相队H元素的度c高度。如果H元素的高度的值是「auto」,t百分比型式的值槲炊x |
z-index | auto | <integer> | 所有可定位的元素 | 否 | 不可使用 |
width | auto | <length> | <percentage> | ^K等c替代元素,以及所有「position」性|的值是「absolute」的元素 | 否 | 相队H元素的度c高度。如果H元素的高度的值是「auto」,t百分比型式的值槲炊x |
height | auto | <length> | <percentage> | ^K等c替代元素,以及所有「position」性|的值是「absolute」的元素 | 否 | 相队H元素的度c高度。如果H元素的高度的值是「auto」,t百分比型式的值槲炊x |
clip | auto | <shape> | 所有「position」性|的值是「absolute」的元素 | 否 | 不可使用 |
overflow | visible | hidden | scroll | auto | 所有「position」性|的值是「absolute」的元素 | 否 | 不可使用 |
visibility | inherit | visible | hidden | 所有元素 | 如果此性|的值是「inherit」,便^承H元素的值,否t此性|]有可^承性 | 不可使用 |
欢迎大家阅读《css 属性参考资料表_css》,跪求各位点评,若觉得好的话请收藏本文,by 搞代码