CSS: Fallback fonts

前端 未结 3 1629
北荒
北荒 2020-12-29 22:17

My website uses a rather obscure font that about half the computers can properly read. The font is \"Lucida Console\". On the computers that can\'t read this font, they get

3条回答
  •  青春惊慌失措
    2020-12-29 22:25

    Further tips:

    • Google css font stack for suggested lists of fonts aimed at certain styles of fonts. 'font stack' is the colloquial name for these font lists.
    • Think cross-platform. Consider adding fonts commonly found on Mac, Linux, iOS, Android, Windows, and other platforms your readers may be using.
    • Always include a generic-family name at the end of your font stack in case the user has none of your desired fonts:
      • serif
      • sans-serif
      • cursive
      • fantasy
      • monospace
    • Include quotes around fonts named with multiple words, or simply quote all font names.

提交回复
热议问题