CSS @ font-face在IE8中不工作 [英] CSS @font-face not working in IE8
本文介绍了CSS @ font-face在IE8中不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经尝试阅读多篇关于如何处理自定义字体在IE中的文章,但他们似乎从来没有为我工作。我试图将字体转换为 EOT
,但似乎没有工作。我不知道我做错了什么,所以我会发布我的代码
I have tried reading multiple articles on how to deal with custom fonts in IE, but they never seemed to work for me. I tried converting the fonts to EOT
, but that didn't seem to work either. I am not sure what I am doing wrong, so I will post my code
@font-face {
font-family: "Klavika Regular";
src: url('../fonts/klavika.eot');
src: local('☺'), url('../fonts/klavika.woff') format('woff'), url('../fonts/klavika.ttf') format('truetype'), url('../fonts/klavika.svg') format('svg');
font-weight: normal;
font-style: normal;
}
推荐答案
http://dev.bowdenweb .com / a / fonts / serif / alegreya / demo.html
@font-face {
font-family: 'AftaserifRegular';
src: url('AftaSerifThin-Regular-webfont.eot');
src: url('AftaSerifThin-Regular-webfont.eot?#iefix') format('embedded-opentype'),
url('AftaSerifThin-Regular-webfont.woff') format('woff'),
url('AftaSerifThin-Regular-webfont.ttf') format('truetype'),
url('AftaSerifThin-Regular-webfont.svg#AftaserifRegular') format('svg');
font-weight: normal;
font-style: normal;
}
这篇关于CSS @ font-face在IE8中不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文