字体不是workibg为IE8 ??得到@ font-face遇到未知错误。 ? [英] font face not workibg for IE8 ?? getting @font-face encountered unknown error. ?

查看:611
本文介绍了字体不是workibg为IE8 ??得到@ font-face遇到未知错误。 ?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用字体包含名为 razing 的自定义字体。该字体在IE8中不工作,但在IE9 +和其他浏览器上工作良好。我在IE8浏览器检查控制台,我发现 @ font-face遇到未知错误。我尝试使用 svg 并修复?#iefix 但它不工作。请能提供一个健康的解决方案来克服这个,谢谢!

I am using font face to include a customised font named razing. The font is not working in IE8 but works well on IE9+ and other browsers. I checked the console in IE8 browser and i found " @font-face encountered unknown error." I tried using svg and fixes like ?#iefix but it ain't working. Please can u provide a healthy solution to overcome this, Thanks !!

    <style>
      @font-face {
      font-family: Razing;
      src: url(Fonts/Razing/razing.eot);
      src: url(Fonts/Razing/razing.eot?#iefix) ,
     url(Fonts/Razing/razing.ttf),
     url(Fonts/Razing/razing.woff),
     url(Fonts/Razing/razing.svg) format('svg');

      }
    .ABC{ font-family:Razing;font-size:20px;  }
    </style>

 <p class="ABC"></p>


推荐答案

尝试这样可能有助于

@font-face {
    font-family: 'dinpromedium';
    src: url('Fonts/Razing/razing.eot');
    src: url('Fonts/Razing/razing.eot?#iefix') format('embedded-opentype'),
         url('Fonts/Razing/razing.woff') format('woff'),
         url('Fonts/Razing/razing.ttf') format('truetype'),
         url('Fonts/Razing/razing.svg#dinpromedium') format('svg');
    font-weight: normal;
    font-style: normal;

}

这篇关于字体不是workibg为IE8 ??得到@ font-face遇到未知错误。 ?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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