[英]Add new font with @font-face doesn't work
is there any error in the follow code ? 后续代码中是否有任何错误?
@font-face {
font-family: 'raveFire';
src: url('ravefire.eot');
src: local('raveFire'), url('ravefire.ttf') format('truetype');
}
this code is into the file "style.css" and, the files ravefire.ttf and ravefire.eot are in the same folder than "style.css" ... 此代码位于文件“ style.css”中,并且文件ravefire.ttf和ravefire.eot与“ style.css”位于同一文件夹中...
Ive tried use this new font-family in span, style, class, etc ... I also tried several browsers... 我尝试过在跨度,样式,类等中使用这种新的字体系列...我还尝试了几种浏览器...
please, any help ? 请帮忙吗?
I've been using font-face quite a bit recently and I've not seen the "local" reference, try it without, ie: 我最近一直在使用font-face,但我还没有看到“本地”引用,请尝试不使用它,即:
@font-face {
font-family: 'raveFire';
font-style: normal;
font-weight: normal;
src: url('ravefire.eot') format('eot'), url('ravefire.ttf') format('truetype');
}
Make sure your fonts are in the same folder as the page, or use absolute paths to them. 确保字体与页面位于同一文件夹中,或使用绝对路径。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.