我下载了一些otf字体,然后使用https://onlinefontconverter.com将它们转换为eot格式,但当我在IE8中查看该网站时,字体不显示(在Chrome、Firefox、Opera和Android中显示)。 我的代码或eot文件可能有问题。 有人知道这是什么问题吗?
(在此处下载Roboto字体:http://www.fontsquirrel.com/fonts/roboto)
(在此处转换:https://onlinefontconverter.com)
STYLES.CSS
样式表和字体文件在同一个文件夹中。
(在此处下载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>
样式表和字体文件在同一个文件夹中。
font-family = Roboto-Condensed
没有生效? - elclanrs