[英]Add new font with @font-face doesn't work
后续代码中是否有任何错误?
@font-face {
font-family: 'raveFire';
src: url('ravefire.eot');
src: local('raveFire'), url('ravefire.ttf') format('truetype');
}
此代码位于文件“ style.css”中,并且文件ravefire.ttf和ravefire.eot与“ style.css”位于同一文件夹中...
我尝试过在跨度,样式,类等中使用这种新的字体系列...我还尝试了几种浏览器...
请帮忙吗?
我最近一直在使用font-face,但我还没有看到“本地”引用,请尝试不使用它,即:
@font-face {
font-family: 'raveFire';
font-style: normal;
font-weight: normal;
src: url('ravefire.eot') format('eot'), url('ravefire.ttf') format('truetype');
}
确保字体与页面位于同一文件夹中,或使用绝对路径。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.