文本修饰
text-decoration: (line-through | underline | overline | none | inherit)
line-through - 横穿文本
underline - 下划线
overline - 上划线
none - 无
inherit - 继承自父元素
line-through - 横穿文本
underline - 下划线
overline - 上划线
none - 无
inherit - 继承自父元素
使用服务器端字体
@font-face{
font-family: WebFont;
src: url('aaa.otf') format("opentype");
}
format有两种:opentype(.otf),truetype(.ttf)
保持字体尺寸不变
font-size-adjust: 0.46
通过调整此值可以修改字体比例
字体样式
font-style: (normal | italic | oblique | inherit)
normal - 正常
italic - 斜体
oblique - 使字体倾斜(当字体没有斜体的时候可以用)
inherit - 继承
溢出
text-overflow: (clip | ellipsis | string)
clip - 裁剪文本
ellipsis - 用省略号代替
string - 采用指定的string来表示溢出