Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有些人已经知道,如果页面上设置的字体不可用,Mac 上的 Safari 会将字体更改为默认字体。
我想通过在其中设置 css 文件来更改 Safari 上的默认字体。
css中的任何页面上是否有任何命令设置默认字体?
您可以在属性中包含多种字体font-family:如果一种字体不可用,则使用列表中的下一种字体。例如,如果“自定义字体”不可用,这将使用 Arial:
font-family
html { font-family: "custom font", Arial; }