CSS 属性列表
属性名称
字体属性(Font)
font-family
font-style
font-variant
font-weight
font-size
颜色和背景属性
Color
Background-color
Background-image
Background-repeat
Background-attachment
Background-position
文本属性
Word-spacing
Letter-spacing
Text-decoration
Vertical-align
Text-transform
Text-align
Text-indent
Line-height
边距属性
Margin-top
Margin-right
Margin-bottom
Margin-left
填充距属性
Padding-top
Padding-right
Padding-bottom
Padding-left
边框属性
属性含义
使用什么字体
字体是否斜体
是否用小体大写
字体的粗细
字体的大小
定义前景色
定义背景色
定义背景图案
重复方式
设置滚动
初始位置
单词之间的间距
字母之间的间距
文字的装饰样式
垂直方向的位置
文本转换
对齐方式
首行的缩进方式
文本的行高
顶端边距
右侧边距
底端边距
左侧边距
顶端填充距
右侧填充距
底端填充距
左侧填充距
属性值
所有的字体
Normal、italic、oblique
Normal、small-caps
Normal、bold、bolder、lithter 等
Absolute-size、relative-size、length、percentage
等
颜色
颜色
路径
Repeat-x、repeat-y、no-repeat
Scroll、Fixed
Percentage、length、top、left、
right、bottom 等
Normal <length>
同上
None|underline|overline|line-
through|blink
Baseline|sub|super|top|text-top|middle|bottom|
text-bottom|
Capitalize|uppercase|
lowercase|none
Left|right|center|justify
<length>|<percentage>
Normal|<number>|<length>|
<percentage>
Length|percentage|auto
同上
同上
同上
Length|percentage
同上
同上
同上
评论0