gpt4 book ai didi

html - 为什么 IE8 不加载我的 eot 文件?

转载 作者:太空狗 更新时间:2023-10-29 13:46:44 25 4
gpt4 key购买 nike

我下载了一些 otf 字体,然后使用以下命令将它们转换为 eot:https://onlinefontconverter.com但是当我在 IE8 中查看该站点时,字体不显示(它们在 Chrome、Firefox、Opera、Android 中显示)。我的代码或 eot 一定有问题。有谁知道出了什么问题吗?

(在此处下载 Roboto:http://www.fontsquirrel.com/fonts/roboto)

(在这里转换:https://onlinefontconverter.com)

STYLES.CSS

@font-face
{
font-family: RobotoCondensed;
src: url("Roboto-Condensed.eot");
}

@font-face
{
font-family: RobotoCondensed;
src: url("Roboto-Condensed.ttf");
}

.myDiv
{
font-family: RobotoCondensed, Arial, Helvetica;
font-size: 10px;
color: #e8e8e8;
}

index.html(相关代码)

<div class="myDiv">Some font in here that shows incorrectly as Arial!</div>

样式表和字体在同一个文件夹中。

最佳答案

感谢大家的帮助。看起来问题出在字体转换器上。 eot 文件未被 IE 识别为有效。感谢“Joel Eckroth”建议我尝试其他转换器。

关于html - 为什么 IE8 不加载我的 eot 文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9627899/

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