一、字体样式
1、font-size
2、font-family(字体)unicode字体
网页中普遍使用·14号字体
尽量使用偶数字号
多个字体用逗号隔开
中文字体以及字体中含有空格、$、井号的需要加引号
尽量使用默认字体(微软雅黑、宋体)
3、font-weight(字体粗细)
normal(400)、bord(700)、border、lighter、100-900
4、font-style
normal、italic(斜体)、oblique(倾斜)
5、属性简写font
style weight size family
6、line-height(行高)
单位:px、%、倍数(相当于当前font-size)
单行文本垂直居中,使line-height=height
7、text-align(水平对齐方式)
left、right、center、justify
8、text-indent(首行缩进)
9、letter-spacing&word-spacing
10、颜色半透明(CSS3新增)
color:rgb(r,g,b,a)a在0-1之间
11、文字阴影(CSS3新增)
text-shadow:h-shadow v-shadow [blur color]