当前位置: 首页 > article >正文

CSS 网络安全字体

适用于 HTML 和 CSS 的最佳 Web 安全字体

下面列出了适用于 HTM L和 CSS 的最佳 Web 安全字体:

  • Arial (sans-serif)
  • Verdana (sans-serif)
  • Helvetica (sans-serif)
  • Tahoma (sans-serif)
  • Trebuchet MS (sans-serif)
  • Times New Roman (serif)
  • Georgia (serif)
  • Garamond (serif)
  • Courier New (monospace)
  • Brush Script MT (cursive)

注意:发布网站之前,请您始终检查字体在不同浏览器和设备上的显示效果,并始终使用后备字体!

Arial (sans-serif)

Arial 是在线和印刷媒体上使用最广泛的字体。Arial 也是 Google Docs 中的默认字体。

Arial 是最安全的网络字体之一,并且在所有主要操作系统上都可用。

实例

<!DOCTYPE html>
<html>
<head>
<style>
body {
  font-family: Arial, sans-serif;
}
</style>
</head>
<body>

<h1>Welcome to Shanghai!</h1>

<p>Shanghai is one of the four direct-administered municipalities of the People's Republic of China. Welcome to Shanghai!</p>

<p>0 1 2 3 4 5 6 7 8 9</p>

</body>
</html>

Arial (sans-serif)

Arial 是在线和印刷媒体上使用最广泛的字体。Arial 也是 Google Docs 中的默认字体。

Arial 是最安全的网络字体之一,并且在所有主要操作系统上都可用。

实例

<!DOCTYPE html>
<html>
<head>
<style>
body {
  font-family: Arial, sans-serif;
}
</style>
</head>
<body>

<h1>Welcome to Shanghai!</h1>

<p>Shanghai is one of the four direct-administered municipalities of the People's Republic of China. Welcome to Shanghai!</p>

<p>0 1 2 3 4 5 6 7 8 9</p>

</body>
</html>

Helvetica (sans-serif)

Helvetica 字体广受设计师喜爱。它适合多种商业类型。

实例

<!DOCTYPE html>
<html>
<head>
<style>
body {
  font-family: Helvetica, sans-serif;
}
</style>
</head>
<body>

<h1>Welcome to Shanghai!</h1>

<p>Shanghai is one of the four direct-administered municipalities of the People's Republic of China. Welcome to Shanghai!</p>

<p>0 1 2 3 4 5 6 7 8 9</p>

</body>
</html>

Tahoma (sans-serif)

Tahoma 字体的字符间距较小。

实例

<!DOCTYPE html>
<html>
<head>
<style>
body {
  font-family: Tahoma, sans-serif;
}
</style>
</head>
<body>

<h1>Welcome to Shanghai!</h1>

<p>Shanghai is one of the four direct-administered municipalities of the People's Republic of China. Welcome to Shanghai!</p>

<p>0 1 2 3 4 5 6 7 8 9</p>

</body>
</html>

Trebuchet MS (sans-serif)

Trebuchet MS 由 Microsoft 于 1996 年设计。请谨慎使用此字体。并非所有移动操作系统都支持。

实例

<!DOCTYPE html>
<html>
<head>
<style>
body {
  font-family: 'Trebuchet MS', sans-serif;
}
</style>
</head>
<body>

<h1>Welcome to Shanghai!</h1>

<p>Shanghai is one of the four direct-administered municipalities of the People's Republic of China. Welcome to Shanghai!</p>

<p>0 1 2 3 4 5 6 7 8 9</p>

</body>
</html>

Times New Roman (serif)

Times New Roman 是世界上最知名的字体之一。它看起来很专业,并在许多报纸和新闻网站中使用。它也是 Windows 设备和应用程序的主要字体。

实例

<!DOCTYPE html>
<html>
<head>
<style>
body {
  font-family: 'Times New Roman', serif;
}
</style>
</head>
<body>

<h1>Welcome to Shanghai!</h1>

<p>Shanghai is one of the four direct-administered municipalities of the People's Republic of China. Welcome to Shanghai!</p>

<p>0 1 2 3 4 5 6 7 8 9</p>

</body>
</html>

Georgia (serif)

Georgia 是一种优雅的衬线字体。它在不同的字体大小下都有很强的可读性,因此非常适合用于移动响应式设计。

实例

<!DOCTYPE html>
<html>
<head>
<style>
body {
  font-family: Georgia, serif;
}
</style>
</head>
<body>

<h1>Welcome to Shanghai!</h1>

<p>Shanghai is one of the four direct-administered municipalities of the People's Republic of China. Welcome to Shanghai!</p>

<p>0 1 2 3 4 5 6 7 8 9</p>

</body>
</html>

Garamond (serif)

Garamond 是用于许多印刷书籍的经典字体。它拥有经典的外观和良好的可读性。

实例

<!DOCTYPE html>
<html>
<head>
<style>
body {
  font-family: Garamond, serif;
}
</style>
</head>
<body>

<h1>Welcome to Shanghai!</h1>

<p>Shanghai is one of the four direct-administered municipalities of the People's Republic of China. Welcome to Shanghai!</p>

<p>0 1 2 3 4 5 6 7 8 9</p>

</body>
</html>

Courier New (monospace)

Courier New 是使用最广泛的等宽衬线字体。 Courier New 通常用于代码的显示,许多电子邮件提供商将其用作默认字体。 Courier New 还是电影剧本的标准字体。

实例

<!DOCTYPE html>
<html>
<head>
<style>
body {
  font-family: 'Courier New', monospace;
}
</style>
</head>
<body>

<h1>Welcome to Shanghai!</h1>

<p>Shanghai is one of the four direct-administered municipalities of the People's Republic of China. Welcome to Shanghai!</p>

<p>0 1 2 3 4 5 6 7 8 9</p>

</body>
</html>

Brush Script MT (cursive)

Brush Script MT 字体旨在模仿笔迹。它优雅精致,但可能很难阅读。请小心使用。

实例

<!DOCTYPE html>
<html>
<head>
<style>
body {
  font-family: 'Brush Script MT', cursive;
}
</style>
</head>
<body>

<h1>Welcome to Shanghai!</h1>

<p>Shanghai is one of the four direct-administered municipalities of the People's Republic of China. Welcome to Shanghai!</p>

<p>0 1 2 3 4 5 6 7 8 9</p>

</body>
</html>


http://www.kler.cn/a/515666.html

相关文章:

  • MySQL——主从同步
  • BERT的中文问答系统69
  • w-form-select.vue(自定义下拉框组件)(与后端字段直接相关性)
  • flask实现重启后需要重新输入用户名而避免浏览器使用之前已经记录的用户名
  • Objective-C语言的安全开发
  • web3py+flask+ganache的智能合约教育平台
  • TCP全连接队列
  • Lisp语言的物联网
  • Golang:使用DuckDB查询Parquet文件数据
  • Charles 4.6.7 浏览器网络调试指南:介绍与安装(一)
  • 【赵渝强老师】K8s中Pod探针的HTTPGetAction
  • 浅谈VPP与DPDK技术以及产业界应用实例
  • 【AI编程】记录一下windsurf中Write模式和Chat模式的区别以及 AI Rules的配置方法
  • Azure学生订阅上手实操:在Ubuntu VPS上利用Docker快速部署PostgreSQL数据库
  • 考研408笔记之数据结构(四)——树与二叉树
  • C++:利用二维数组打印杨辉三角形。
  • 基于Spring Boot3 + Vue3 + JDK17的现代化的Java应用开发框架
  • MATLAB中insertAfter函数用法
  • 自动化01
  • 【ElementPlus】在Vue3中实现表格组件封装