1、字体属性
- font-style:字体风格---三个属性:normal(正常)、italic(斜体)、oblique(倾斜)。
- font-variant:字体变形---normal、small-caps(小型大写字母)
- font-weight:字体加粗---normal、bold、bolder、lighter
- font-size:字体大小---用于设置字体的大小,可以使用绝对大小、相对大小、长度或者百分比。
- font-family:字体族科---用于设置字体的,例如:宋体,隶书,courier等。
- font:风格||变形||加粗||大小||行高||族科
2、文本属性
- letter-spacing:字母间隔---该值必须符合长度格式,允许使用负值。
- word-spacing:文字间隔---同上
- text-decoration:文字修饰---underlin、overline、line-through、blink(闪烁)
- text-align:横向排列---left、right、center或justify
- text-indent:文本缩进---同1、2
- line-height:行高
3、背景属性
- background-color:背景颜色
- background-image:背景图像---url()或none
- background-repeat:背景重复---repeat、repeat-x、repeat-y、no-repeat
- background-attachment:背景附件---scroll、fixed
- background-position:背景位置
- background:颜色||图像||重复||附件||位置
4、列表属性
- list-style-type
- list-style-image
- list-style-position
5、边框风格属性