1、font-size 字體大小
2、font-family 字體格式
3、font-weight 加粗
4歪玲、font-style : normal | italic | oblique
5、line-height 字體高度:
normal | <number> | <length> | <percentage>
<number>與<percentage>區(qū)別:
percentage是先計算再繼承(給自身font-size)掷匠,percentage=300%時滥崩,line-height為30px(body的font-size值)*3=90px
number則直接繼承,number=3時,line-height=16px(自身font-size值)*3=48px
6讹语、font :
[<font-size> || <font-weight> ] ? <font-size> [/<line-height>] ? <font-family>
Paste_Image.png
7钙皮、vertical-align 垂直對齊
Paste_Image.png
8、text-indent 首行縮進(jìn) :
<length> | <percentage>
Paste_Image.png
9顽决、white-space :
normal | nowrap | pre | pre-wrap | pre-line
Paste_Image.png
10短条、word-warp :單詞換行
nomal | break-word
11、word-break :
normal | keep-all | break-all
Paste_Image.png
12才菠、text-shadow :
none | [<length> {2,3} && <color>? ]#
length第三個值是模糊半徑
顏色不寫則默認(rèn)為文字顏色
13慌烧、text-decoration :
none | [underline || overline || line-through]
14、text-overflow:
clip | ellipsis
Paste_Image.png
15鸠儿、cursor
Paste_Image.png