要描述字体,请使用@font-face规则。您可以尝试运行以下代码来设置字体 -
示例
<style>
<!--
@font-face {
font-family: Scarborough Light;
src: url(http://www.font.site/s/scarbo-lt);
}
@font-face {
font-family: Santiago;
src: local (Santiago),
url(http://www.font.site/s/santiago.tt)
format(truetype);
unicode-range: U+??,U+100-220;
font-size: all;
font-family: sans-serif;
}
-->
</style>
以上就是描述 CSS 文档中使用的字体的详细内容,更多请关注双恒网络其它相关文章!