CSS @font-face 规则的用法

王林
王林 转载
2023-08-31 08:45:05 230浏览

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>

以上就是CSS @font-face 规则的用法的详细内容,更多请关注php中文网其它相关文章!

声明:本文转载于:tutorialspoint,如有侵犯,请联系admin@php.cn删除