我已经在我的CSS中的字体下面放置了。

@font-face {
font-family: 'sfnt';
src: url('../sfnt.eot'); /* IE9 Compat Modes */
src: url('../sfnt.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../sfnt.woff') format('woff'), /* Modern Browsers */
url('../sfnt.ttf') format('truetype'); /* Safari, Android, iOS */
font-weight: normal;
font-style: normal;
}


如果我尝试在任何版本的IE中打开网页,都不会加载我的字体文件。
它可以与Chrome,Safari和Firefox配合使用。

我搜索了堆栈溢出中记录的类似问题,并尝试了所有可能的解决方案。似乎没有任何作用。

请让我知道出了什么问题。

谢谢

最佳答案

如果您尝试直接访问.eot字体的网址,即http:///sfnt.eot,会发生什么?

关于css - IE版本均未加载我的字体文件,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/20265489/

10-10 14:03