我很難讓那些在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類型是已知的。
此問題似乎是IE10字體DRM問題。類似的問題在這裏,http://stackoverflow.com/questions/15744026/font-face-not-displaying-correctly-in-ie – 2014-11-09 03:40:14
答案是包含在那裏http://stackoverflow.com/questions/15744026/font-face不正確顯示,正如@Richard Edwards所指出的那樣 – 2014-11-13 22:53:28