以下写几个常用的字体样式,方便以后使用:
font-family: FangSong;
font-weight: bold;
font-size: 20px;
font-style: italic;
text-decoration: underline;
letter-spacing: 1em;
line-height: 2em;
简写:
font:bold 20px FangSong
样式 | 作用 |
---|---|
font-family | 字体为楷体或者宋体等 |
font-weight | 加粗或者正常 |
font-size | 字体大小 |
font-style | 斜体 |
letter-spacing | 字间距 |
Column 1 | Column 2 |
---|---|
centered 文本居中 | right-aligned 文本居右 |