前端学习2——css
二、字体和文字样式
1.字体样式
⑴大小:font-size 数字+px
⑵粗细:font-weight
normal(正常)/bold(加粗)
⑶样式:font-style
normal(正常)/italic(倾斜)
⑷类型:font-family 字体系列
常见字体:①无衬线字体:sana-serif
②衬线字体:serif
③等宽字体:monospace
⑸取值:font:style weight size family;
2.文本样式
⑴文本缩进
属性名:text-indent
取值:数字+px / 数字+em
注:1em=当前标签的font-size的大小
⑵文本水平对齐
属性名:text-align
取值:left 左对齐
center 居中对齐
right 右对齐
⑶文本修饰
属性名:text-decoration
取值:underline 下划线
line-through 删除线
overline 上划线
none 无装饰线
...全文