CSS Web 安全字体组合

CSS font-family 属性是多种字体的名称,作为一个 "应变" 制度,以确保浏览器/操作系统之间的最大兼容性

如果浏览器不支持的第一个字体,它尝试下一个的字体

如果我们提供的字体类型如果浏览器找不到,它会从通用的字体类型中找到与之相似的

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

运行范例 »

下表列出了一些常用的字体组合,通用的字体系列

Serif 字体

字体 文本示例
Georgia, serif

This is a <h2>

This is a paragraph

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

This is a <h2>

This is a paragraph

"Times New Roman", Times, serif

This is a <h2>

This is a paragraph

sans - serif字体

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

this is a <h2>

This is a paragraph

Arial Black, Gadget, sans-serif

this is a <h2>

This is a paragraph

"Comic Sans MS", cursive, sans-serif

this is a <h2>

This is a paragraph

Impact, Charcoal, sans-serif

this is a <h2>

This is a paragraph

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

this is a <h2>

This is a paragraph

Tahoma, Geneva, sans-serif

this is a <h2>

This is a paragraph

"Trebuchet MS", Helvetica, sans-serif

this is a <h2>

This is a paragraph

Verdana, Geneva, sans-serif

this is a <h2>

This is a paragraph

Monospace 字体

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

this is a <h2>

This is a paragraph

"Lucida Console", Monaco, monospace

this is a <h2>

This is a paragraph

CSS 参考手册

关于   |   FAQ   |   我们的愿景   |   广告投放   |  博客

  简单教程,简单编程 - IT 入门首选站

Copyright © 2013-2022 简单教程 twle.cn All Rights Reserved.