一、文本设置属性
非常常用的几种文本设置属性:
color 设置字体颜色
font-size设置文字大小
font-family设置文字字体
font-style设置字体是否倾斜 normal / italic
font-weight设置字体是否加粗 normal / bold
line-height 设置行高
font 同时设置字体的几个属性 顺序不能错 font: 是否加粗 字号/行高 字体
text-decoration 设置文字的下划线
text-indent 设置首行缩进
text-align 设置水平对齐方式
二、颜色表示法
- color:red; color:gold;
- color:rgb(255,0,0); (QQ截图有显示)
- color:#ff0000; (一般使用PS查看)