CSS字体不能在IE9中加载 [英] CSS fonts not loading in IE9

查看:152
本文介绍了CSS字体不能在IE9中加载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个问题与@ font-face字体不加载在IE9。 IE8和以下工作完美,像做其他浏览器,我试过。
这是我的CSS(font squirrel语法):

I have a problem with @font-face fonts not loading in IE9. IE8 and below works perfect, as do every other browser I've tried. This is my CSS (font squirrel syntax):

@font-face {
 font-family: 'ssmicon';
 src: url('ssmfont3.eot');
 src: url('ssmfont3.eot?#iefix') format('embedded-opentype'),
  url('ssmfont3.woff') format('woff'),
  url('ssmfont.ttf') format('truetype'),
  url('ssmfont.svg#svgssmfont') format('svg');
 font-weight: normal;
 font-style: normal;
}

所有字形都在基本的拉丁语范围一个问题)和在同一个服务器(所以没有跨域问题)。我已将Access-Control-Allow-Origin设置为*,以防万一。仍然没有成功(至少不是根据 http://netrenderer.com/ )。很抱歉,我没有访问权限到当前的IE浏览器)。以下是受影响的网页: http://xn--ssongsmat-v2a.nu/ssm/Test3

All glyphs are in the basic latin range (I read somewhere that IE could have an issue otherwise) and at the same server (so no cross domain issue). I have set Access-Control-Allow-Origin to * just in case. Still no success (at least not according to http://netrenderer.com/. Unfortunately, I don't have access to an IE browser at the moment). Here is a page affected: http://xn--ssongsmat-v2a.nu/ssm/Test3

任何其他想法IE9 / 10对网络字体有什么特殊要求?

Any other ideas what specific requirements IE9/10 might have when it comes to web fonts?

推荐答案

毕竟这是一个缩小问题。看起来像IE9和IE10是非常挑剔的换行符保存在一些地方,所以字体面声明必须远离所有的缩小。

This was a minification issue after all. Seems like IE9 and IE10 are very picky about line breaks being kept in some places, so font-face declarations have to be kept away from all minification.

这篇关于CSS字体不能在IE9中加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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