CSS @ font-face规则的用法
@font-face规则用于详尽描述文档中使用的字体。@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>