2014-11-08 46 views
0

我很難讓那些在IE10.Windows 8上工作的font-face(儘管它在safari上工作正常)。IE10:@ font-face不起作用

有什麼想法?

<head> 
<style> 
@font-face { 
    font-family: 'Open Sans Condensed Light'; 
    font-style: normal; 
    font-weight: 300; 
    src: local('Open Sans Condensed Light'), local('OpenSans-CondensedLight'), url(rsc/fonts/opensanscondensedlight.ttf) format('truetype'); 
} 
@font-face { 
    font-family: 'Open Sans Condensed Bold'; 
    font-style: normal; 
    font-weight: 700; 
    src: local('Open Sans Condensed Bold'), local('OpenSans-CondensedBold'), url(rsc/fonts/opensanscondensedbold.ttf) format('truetype'); 
} 
</style> 

[更新1]

這裏是的jsfiddle http://jsfiddle.net/stephanedeluca/f3hduskv/

[更新2]

上了TTF文件404,我不明白這一點。網址沒問題。有一件事:type顯示爲text/html。 rtf在IIS上的MIME類型是已知的。

enter image description here

+0

此問題似乎是IE10字體DRM問題。類似的問題在這裏,http://stackoverflow.com/questions/15744026/font-face-not-displaying-correctly-in-ie – 2014-11-09 03:40:14

+0

答案是包含在那裏http://stackoverflow.com/questions/15744026/font-face不正確顯示,正如@Richard Edwards所指出的那樣 – 2014-11-13 22:53:28

回答

0

是字體下載IE10中禁用?它位於Internet Explorer的設置中:安全設置 - Internet區域>下載>字體下載。選項是啓用,禁用和提示。如果停用,你什麼也得不到

+0

我已經檢查過了:已啓用。 (我提供了一個jsFiddle) – 2014-11-08 21:45:40

+0

您是否在開發者控制檯(F12)中看到任何錯誤?你還看到網絡標籤中的文件下載嘗試嗎? – 2014-11-08 21:53:13

+0

你是對的我有404,但我真的不知道爲什麼。我把相關屏幕截圖作爲@Richard Edwards – 2014-11-08 22:03:16