为什么@ font-face在IE8中不起作用? [英] Why does @font-face not work in IE8?

查看:294
本文介绍了为什么@ font-face在IE8中不起作用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

Does anybody have an idea, why this one does not work in 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> of index.html 。它适用于IE10和Chrome,所以路径应该是正确的。

It is included at the top of the <head> of index.html. It works in IE10 and Chrome, so the paths should be correct.

我在VM中运行IE8。

I run IE8 in a VM.

推荐答案

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

The syntax is good, I would look at the font file itself.

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

Did you use a conversion tool? Try converting the font again.

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

Check to see if you can access the EOT file directly (should be fine if it works in IE9).

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

Are there any CSS classes targeting IE8? Check to see if they are changing the font family.

这篇关于为什么@ font-face在IE8中不起作用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆