freeCodeCamp/guide/chinese/css/web-safe-fonts/index.md

41 lines
1.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

---
title: Web Safe Fonts
localeTitle: Web安全字体
---
## Web安全字体
Web安全字体是大多数操作系统都包含的字体这种高可用性的含义是设计人员可以期望涉及Web安全字体的排版与大多数用户完全一致。以下是在撰写本文时被视为Web安全的某些字体的非详尽列表按CSS通用字体系列分类。
Web安全衬线字体
* 格鲁吉亚
* 英语字体格式一种
Web安全sans-serif字体
* 宋体
* 宋体
* 投石机MS
* 宋体
Web安全等宽字体
* 快递新
值得注意的是即使您的设计仅使用Web安全字体仍应使用包含回退选项包括通用字体系列的字体堆栈。例如
```css
p {
font-family: Tahoma, Arial, sans-serif;
}
```
#### 关于Web字体的注释
仅仅因为某些字体比其他字体更安全并不意味着您应该将您的设计限制为仅使用Web安全字体。使用CSS的现代设计还可以利用Web字体来确保跨操作系统的一致排版。
#### 更多信息:
* [MDN文档基本文本和字体样式](https://developer.mozilla.org/en-US/docs/Learn/CSS/Styling_text/Fundamentals#Web_safe_fonts)
* [MDN文档Web字体](https://developer.mozilla.org/en-US/docs/Learn/CSS/Styling_text/Web_fonts)
* [Web安全字体](https://www.cssfontstack.com)