CSS Web安全字體

2022-06-02 14:13 更新

CSS Web安全字體組合


常用的字體組合

font-family屬性是多種字體的名稱,作為一個(gè)"應(yīng)變"制度,以確保瀏覽器/操作系統(tǒng)之間的最大兼容性。如果瀏覽器不支持的第一個(gè)字體,它嘗試下一個(gè)的字體。

你想要的字體類型如果瀏覽器找不到,它會(huì)從通用的字體類型中找到與你相似的:

實(shí)例

p{font-family:"Times New Roman", Times, serif}

嘗試一下 ?

下面是一些常用的字體組合,通用的字體系列。


Serif 字體

字體 文本示例
Georgia, serif

This is a heading

This is a paragraph

"Palatino Linotype", "Book Antiqua", Palatino, serif

This is a heading

This is a paragraph

"Times New Roman", Times, serif

This is a heading

This is a paragraph

sans - serif字體

字體 文本示例
Arial, Helvetica, sans-serif

This is a heading

This is a paragraph

Arial Black, Gadget, sans-serif

This is a heading

This is a paragraph

"Comic Sans MS", cursive, sans-serif

This is a heading

This is a paragraph

Impact, Charcoal, sans-serif

This is a heading

This is a paragraph

"Lucida Sans Unicode", "Lucida Grande", sans-serif

This is a heading

This is a paragraph

Tahoma, Geneva, sans-serif

This is a heading

This is a paragraph

"Trebuchet MS", Helvetica, sans-serif

This is a heading

This is a paragraph

Verdana, Geneva, sans-serif

This is a heading

This is a paragraph

Monospace 字體

字體 文本示例
"Courier New", Courier, monospace

This is a heading

This is a paragraph

"Lucida Console", Monaco, monospace

This is a heading

This is a paragraph

以上內(nèi)容是否對(duì)您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號(hào)
微信公眾號(hào)

編程獅公眾號(hào)