2012-01-27 35 views
1

由于某种原因,字体不在IE 8和以下渲染。我已经应用了IE修补程序(.eot?#iefix),它总是有效,但由于某种原因,它不是这次。任何人都知道发生了什么问题或者有这样的问题?下面是我有:@ font-face不嵌入IE8和

@font-face { 
font-family: 'rrb-main'; 
src: url('./assets/rrb-main.eot'); 
src: url('./assets/rrb-main.eot?#iefix') format('embedded-opentype'), 
     url('./assets/rrb-main.woff') format('woff'), 
     url('./assets/rrb-main.ttf') format('truetype'); 
font-weight: normal; 
font-style: normal; 

}

+0

请参阅我在http://stackoverflow.com/a/11386333/638254的回答,了解在DOM中放置'@ font-face'的位置 – zykadelic 2012-07-08 20:26:31

回答

1

尝试使用在你的标签双引号,像这样:

@font-face { 
font-family: "rrb-main"; 
src: url("./assets/rrb-main.eot"); 
src: url("./assets/rrb-main.eot?#iefix") format("embedded-opentype"), 
    url("./assets/rrb-main.woff") format("woff"), 
    url("./assets/rrb-main.ttf") format("truetype"); 
font-weight: normal; 
font-style: normal; 
} 

我不知道为什么,但有时工程。这个标签应该工作,因为你有EOT版本的字体。