Name | Values |
---|---|
background | [background-color ||background-image ||background-repeat || background-attachment ||background-position] |
background-attachment | scroll | fixed |
background-color | color | transparent |
background-image | url( url ) | none |
background-position | [ [percentage | length ]{1,2} | [ [top | center | bottom] || [left | center | right] ] ] |
background-repeat | repeat | repeat-x | repeat-y | no-repeat |
border | [ border-width ||border-style || color ] |
border-collapse | collapse | separate |
border-color | color{1,4} | transparent |
border-spacing | length length? |
border-style | [none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset]{1,4} |
border-top border-right border-bottom border-left | [ border-top-width ||border-top-style || color ] |
border-top-color border-right-color border-bottom-color border-left-color | color |
border-top-style border-right-style border-bottom-style border-left-style | none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset |
border-top-width border-right-width border-bottom-width border-left-width | thin | medium | thick | length |
border-width | [thin | medium | thick | length]{1,4} |
bottom | length | percentage | auto |
caption-side | top | bottom | left | right |
clear | none | left | right | both |
clip | [rect( [length | auto]{4} )] | auto |
color | color |
content | [ string | url( url ) | counter | attr(attribute-name) | open-quote | close-quote | no-open-quote | no-close-quote ]+ |
counter-increment | [ identifier integer? ]+ | none |
counter-reset | [ identifier integer? ]+ | none |
cursor | [ [url( url ) ,]* [ auto | crosshair | default | pointer | move | e-resize | ne-resize | nw-resize | n-resize | se-resize | sw-resize | s-resize | w-resize | text | wait | help ] ] |
direction | ltr | rtl |
display | inline | block | list-item | run-in | compact | marker | table | inline-table | table-row-group | table-header-group | table-footer-group | table-row | table-column-group | table-column | table-cell | table-caption | none |
empty-cells | show | hide |
float | left | right | none |
font | [ [ font-style || font-variant || font-weight ]? font-size [ / line-height ]? font-family ] | caption | icon | menu | message-box | small-caption | status-bar |
font-family | [[ family-name | serif | sans-serif | monospace | cursive | fantasy],]+ |
font-size | xx-small | x-small | small | medium | large | x-large | xx-large | smaller | larger | length | percentage |
font-size-adjust | number | none |
font-stretch | normal | wider | narrower | ultra-condensed | extra-condensed | condensed | semi-condensed | semi-expanded | expanded | extra-expanded | ultra-expanded |
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 |
height | length | percentage | auto |
left | length | percentage | auto |
letter-spacing | normal | length |
line-height | normal | number | length | percentage |
list-style | [ list-style-type || list-style-position || list-style-image ] |
list-style-image | url( url ) | none |
list-style-position | inside | outside |
list-style-type | disc | circle | square | decimal | decimal-leading-zero | lower-roman | upper-roman | lower-greek | lower-alpha | lower-latin | upper-alpha | upper-latin | hebrew | armenian | georgian | cjk-ideographic | hiragana | katakana | hiragana-iroha | katakana-iroha | none |
margin | [length | percentage | auto]{1,4} |
margin-topmargin-right margin-bottom margin-left | length | percentage | auto |
marker-offset | length | auto |
marks | [ crop || cross ] | none |
max-height | length | percentage | none |
max-width | length | percentage | none |
min-height | length | percentage |
min-width | length | percentage |
orphans | integer |
outline | [ outline-color || outline-style || outline-width ] |
outline-color | color | invert |
outline-style | none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset |
outline-width | thin | medium | thick | length |
overflow | visible | hidden | scroll | auto |
padding | [length | percentage]{1,4} |
padding-top padding-right padding-bottom padding-left | length | percentage |
page | identifier | auto |
page-break-after | auto | always | avoid | left | right |
page-break-before | auto | always | avoid | left | right |
page-break-inside | avoid | auto |
position | static | relative | absolute | fixed |
quotes | [string string]+ | none |
right | length | percentage | auto |
size | length{1,2} | auto | portrait | landscape |
table-layout | auto | fixed |
text-align | left | right | center | justify | string |
text-decoration | none | [ underline || overline || line-through || blink ] |
text-indent | length | percentage |
text-shadow | none | [color || length length length? ,]* [color || length length length?] |
text-transform | capitalize | uppercase | lowercase | none |
top | length | percentage | auto |
unicode-bidi | normal | embed | bidi-override |
vertical-align | baseline | sub | super | top | text-top | middle | bottom | text-bottom | percentage | length |
visibility | visible | hidden | collapse |
white-space | normal | pre | nowrap |
widows | integer |
width | length | percentage | auto |
word-spacing | normal | length |
z-index | auto | integer |
星期日, 十一月 26, 2006
CSS style属性和值
订阅:
博文评论 (Atom)
1 条评论:
网站管理员的html和css代码示例
html代码示例正文文本左对齐
发表评论