web设置字体粗细css_CSS字体家族和Web安全字体介绍

web设置字体粗细css

Web安全字体 (Web Safe Fonts)

Web safe fonts are fonts that are included with most operating systems, the implication of such high availability is that a designer can expect typography involving web safe fonts to appear exactly as intended to most users. Below are non-exhaustive lists of some fonts that are considered web safe at the time of writing, categorized by CSS generic font families.

Web安全字体是大多数操作系统随附的字体,这种高可用性的含义是设计人员可以期望涉及Web安全字体的排版与大多数用户的意图完全一致。 以下是按CSS通用字体系列分类的在撰写本文时被认为是网络安全的某些字体的非详尽列表。

Web safe serif fonts:

Web安全衬线字体:

  • Georgia

    佐治亚州
  • Times New Roman

    英语字体格式一种

Web safe sans-serif fonts:

Web安全无衬线字体:

  • Arial

    Arial
  • Tahoma

    塔豪玛
  • Trebuchet MS

    Trebuchet MS
  • Verdana

    Verdana

Web safe monospaced fonts:

Web安全等宽字体:

  • Courier New

    快递新

It is worth noting that font stacks with fallback options including a generic font family should still be used even if your design uses only web safe fonts. For example:

值得注意的是,即使您的设计仅使用网络安全字体,仍应使用带有回退选项的字体堆栈(包括通用字体系列)。 例如:

p {
  font-family: Tahoma, Arial, sans-serif;
}
Web字体注意事项 (A Note on Web Fonts)

Just because some fonts are safer than others does not mean you should confine your designs to using only web safe fonts. Modern designs with CSS can also take advantage of web fonts to ensure consistent typography across operating systems.

仅仅因为某些字体比其他字体更安全,并不意味着您应该将设计限制为仅使用网络安全字体。 使用CSS的现代设计还可以利用Web字体来确保跨操作系统的一致排版。

有关字体的更多信息: (More info on fonts:)

翻译自: https://www.freecodecamp.org/news/web-safe-fonts/

web设置字体粗细css

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值