【发布时间】:2012-11-22 14:33:48
【问题描述】:
这让我发疯了一个多星期,所以我将不胜感激。
我正在尝试将自定义字体导入我的网页。我已经把它弄了一千次了,但这次我没有让它在 IE 8 及以下版本中工作。
我的css代码是:
<style>
@font-face {
font-family: 'Bello-Script';
src: url('fonts/Bello-Script.eot?');
src: url('fonts/Bello-Script.eot?#iefix') format('embedded-opentype'),
url('fonts/Bello-Script.woff') format('woff'),
url('fonts/Bello-Script.ttf') format('truetype'),
url('../fonts/Bello-Script.svg#Bello-Script') format('svg');
font-weight: normal;
font-style: normal;
}
</style>
HTML 代码:
<div style="font-family:'Bello-Script', Verdana">the quick brown fox jumps over the lazy dog</div>
你可以在这里查看它的工作情况:https://metrikstudios.com/want/fbapp/font-test.php
一般我通过 fontsquirrel 转换为 .EOT,但是这种字体被列入黑名单。我购买了完整的商业许可,但他们没有出售.EOT。
所以我使用了我找到的所有转换器来创建 .EOT,但是我无法在 IE8 中显示字体。因此,我猜测问题不在于 .EOT 文件,而是其他问题。
提前致谢
【问题讨论】:
标签: css internet-explorer fonts font-face