为什么@ font-face在IE8中不起作用?

时间:2013-05-22 14:55:10

标签: html5

有没有人知道,为什么这个在IE8中不起作用?

@font-face {
    font-family: 'entypo';
    src: url('styles/fonts/entypo/entypo_normal.eot');
    src: url('styles/fonts/entypo/entypo_normal.eot?#iefix') format('embedded-opentype'),
        url('styles/fonts/entypo/entypo_normal.woff') format('woff'),
        url('styles/fonts/entypo/entypo_normal.ttf') format('truetype'),
        url('styles/fonts/entypo/entypo_normal.eot#entypo_normal') format('svg');

    font-weight: normal;
    font-style: normal;
}

它包含在<head> index.html的顶部。它适用于IE10和Chrome,因此路径应该是正确的。

我在VM中运行IE8。

1 个答案:

答案 0 :(得分:1)

语法很好,我会查看字体文件本身。

您使用过转化工具吗?尝试再次转换字体。

检查您是否可以直接访问EOT文件(如果它在IE9中有效,应该没问题。)

是否有针对IE8的CSS类?检查它们是否正在更改字体系列。

相关问题