Why does @font-face not work in IE8?

2019-09-07 02:38发布

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;
}

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

I run IE8 in a VM.

标签: html5
1条回答
你好瞎i
2楼-- · 2019-09-07 03:20

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

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

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

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

查看更多
登录 后发表回答