我下载了一些otf字体,然后将它们转换为eot使用:
https://onlinefontconverter.com但是当我在IE8中查看该网站时,字体不显示(它们显示在Chrome,Firefox,Opera,Android中).无论是我的代码还是eot都有问题.有谁知道什么是错的?
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(相关代码)
Some font in here that shows incorrectly as Arial!
样式表和字体位于同一文件夹中.