CSS安全字体的写法
生活随笔
收集整理的這篇文章主要介紹了
CSS安全字体的写法
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
? ? font-family 屬性應(yīng)該使用若干種字體名稱作為回退系統(tǒng),以確保瀏覽器/操作系統(tǒng)之間的最大兼容性。如果瀏覽器不支持第一個(gè)字體,則會(huì)嘗試下一個(gè)。
p{font-family:'Times New Roman', Times, serif}Serif 字體
| Georgia, serif | This is a headingThis is a paragraph |
| 'Palatino Linotype', 'Book Antiqua', Palatino, serif | This is a headingThis is a paragraph |
| 'Times New Roman', Times, serif | This is a headingThis is a paragraph |
Sans-Serif 字體
| Arial, Helvetica, sans-serif | This is a headingThis is a paragraph |
| 'Arial Black', Gadget, sans-serif | This is a headingThis is a paragraph |
| 'Comic Sans MS', cursive, sans-serif | This is a headingThis is a paragraph |
| Impact, Charcoal, sans-serif | This is a headingThis is a paragraph |
| 'Lucida Sans Unicode', 'Lucida Grande', sans-serif | This is a headingThis is a paragraph |
| Tahoma, Geneva, sans-serif | This is a headingThis is a paragraph |
| 'Trebuchet MS', Helvetica, sans-serif | This is a headingThis is a paragraph |
| Verdana, Geneva, sans-serif | This is a headingThis is a paragraph |
Monospace 字體
| 'Courier New', Courier, monospace | This is a headingThis is a paragraph |
| 'Lucida Console', Monaco, monospace | This is a headingThis is a paragraph |
?
總結(jié)
以上是生活随笔為你收集整理的CSS安全字体的写法的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 前端学习(2482):关于接口的调错
- 下一篇: CSS半透明磨砂效果实现