CSS的文本属性
1. font-size字体大小(单位可以用px,pt,em等12pt=16px 16px=12pt=16px)
(em=16px 浏览器默认是16px)
2. color颜色(color:red; colocr:#ffo; color:rgb(255,0,0,); 0-255
3. font-family字体
4. font-weight加粗
font-weight:bolder(更粗的)/bolt(加粗)
font-weight:100-900; 100-500不加粗 600-900加粗
5. font-style倾斜
font-style:italic(斜体字) /oblique(倾斜的文字) normal(常规显示)
6.text-align文字水平对齐
text-align:left; 水平靠左 text-align:right; 水平靠右 text-align:center;水平居中
text-align:justify; 水平2端对齐 ,但是只对多行起作用。
7. line-height 行高
说明:line-height的数据=height的数据,可以实现单行文本垂直居中
8. font文字简介
font-style font-weight font-size/ line-height font-family
9. text-decoration 文本修饰
text-decoration:none 没有/underline下划线/overline上划线/line-through删除线
10. text-indent首行缩进 text-indent可以取负值 text-indent属性只对第一行起作用
11. letter-spacing字间距 控制文字和文字之间的间距