1. Font Size
- 1px(Pixel)
- 1/96 inch
- 0.26mm
- 1pt(Point)
- 1/72 inch
- 0.35mm
- in word
- 1em()
- 100% of parent
- 1rem 推荐
- 100% of root
2. Font Weight
- 关键词
- normal
- bold
- Relative to Parent
- lighter
- bolder
- 数字
- 100-900
3. Font Family
- Helvetica is sans serif
- Times New Roman is serif
h1 {
font-family: Helvetica,sans-serif
}
h1 {
font-family: "Times New Roman",sans-serif
}
- fonts.google.com
4. Text Align
h1 {
text-align:center
}