html – Font-Family属性中的多种字体?

html – Font-Family属性中的多种字体?,第1张

概述在命令中 <span style="font-family: arial,helvetica,sans-serif"> <font size="1"> [Country] </font></span> 为什么在font-family属性中有多种字体? 这是否意味着如果没有安装arial字体,那么它会转到helvetica? 是. The font-family prop 在命令中
<span >   <Font size="1">       [Country]   </Font></span>

为什么在Font-family属性中有多种字体?

这是否意味着如果没有安装arial字体,那么它会转到helvetica?

解决方法 是.

The Font-family property can hold several Font names as a “fallback” system. If the browser does not support the first Font,it trIEs the next Font.

来自:http://www.w3schools.com/cssref/pr_font_font-family.asp

和好的做法:

Start with the Font you want,and always end with a generic family,to let the browser pick a similar Font in the generic family,if no other Fonts are available.

总结

以上是内存溢出为你收集整理的html – Font-Family属性中的多种字体?全部内容,希望文章能够帮你解决html – Font-Family属性中的多种字体?所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/web/1101198.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-28
下一篇 2022-05-28

发表评论

登录后才能评论

评论列表(0条)

保存