【发布时间】:2018-10-24 11:26:09
【问题描述】:
【问题讨论】:
【问题讨论】:
我是通过直接上传到 GitHub 来实现的,代码如下:
@font-face {
font-family: "Kimberley";
src: url("../Submit/kimberle.ttf") format("truetype");
}
@font-face {
font-family: "LemonMilk";
src: url("../Submit/LemonMilk.ttf") format("truetype");
}
@font-face {
font-family: "rc";
src: url("../Submit/R&C-Demo.otf") format("opentype");
}
【讨论】:
您似乎忘记用} 关闭您的第一个@font-face。
此外,某些字体格式并不总是适用于网络。有时您必须使用webfont-converter 转换它们。
@font-face {
font-family: "Kimberley";
src: url(http://www.princexml.com/fonts/larabie/kimberle.ttf) format("truetype");
}
@font-face {
font-family: "r_c";
src: url(https://www.dropbox.com/s/p38qag2pb8zwdlq/R%26C-Demo.otf?dl=1) format("otf");
}
【讨论】: