gpt4 book ai didi

CSS @font-face 在 IE8 中不工作

转载 作者:技术小花猫 更新时间:2023-10-29 10:06:59 24 4
gpt4 key购买 nike

我曾尝试阅读多篇关于如何在 IE 中处理自定义字体的文章,但它们似乎对我不起作用。我尝试将字体转换为 EOT,但这似乎也不起作用。我不确定我做错了什么,所以我会发布我的代码

@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;
}

最佳答案

这在 ie8/9 中有效

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 中不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7582401/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com