Internet Explorer @font-face is failing

前端 未结 15 1355
甜味超标
甜味超标 2020-11-27 18:07

I\'m trying to get Internet Explorer to render my pretty fonts. It\'s not working. They work fine in Firefox and I can see in my Apache access logs that IE has pulled the fo

15条回答
  •  隐瞒了意图╮
    2020-11-27 19:06

    Remember that: .eot fonts must be the last one "src". If not, IE will rewrite the config and crash the font.

    @font-face {
        font-family: "Aller Bold";
        src: url(fonts/Aller_Bd.ttf) format("truetype");
        src: url(fonts/Aller_Bd.eot);
    }
    

提交回复
热议问题