Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/38.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/wix/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Css @字体不显示在Internet Explorer上它在Google chrome中工作_Css_Font Face - Fatal编程技术网

Css @字体不显示在Internet Explorer上它在Google chrome中工作

Css @字体不显示在Internet Explorer上它在Google chrome中工作,css,font-face,Css,Font Face,这在Google Chrome中有效,但在Internet Explorer中无效。它在IE中本地运行,但在我发布时不起作用。Paul Irish就此主题发表了一篇优秀的文章: @font-face{ 字体系列:“EntypoRegular”; src:url('Entypo-webfont.eot?')格式('eot'),url('Entypo-webfont.woff')格式('woff'), url('Entypo-webfont.ttf')格式('truetype'); }为什么要添加

这在Google Chrome中有效,但在Internet Explorer中无效。它在IE中本地运行,但在我发布时不起作用。

Paul Irish就此主题发表了一篇优秀的文章:

@font-face{
字体系列:“EntypoRegular”;
src:url('Entypo-webfont.eot?')格式('eot'),url('Entypo-webfont.woff')格式('woff'),
url('Entypo-webfont.ttf')格式('truetype');

}

为什么要添加
c#
标记?看起来不相关。确定eot文件是从IIS提供的吗?@Linus Caldwell是的,因为它在CromeNot工作不确定,但我不认为Chrome使用eot。Eot仅由Redmond的脏类型使用。您在服务器上有正确的mime类型设置吗?
@font-face {
    font-family: 'EntypoRegular';
    src: url('Entypo-webfont.eot');
    src: url('Entypo-webfont.eot?#iefix') format('embedded-opentype'),
         url('Entypo-webfont.woff') format('woff'),
         url('Entypo-webfont.ttf') format('truetype'),
         url('Entypo-webfont.svg#EntypoRegular') format('svg');
    font-weight: normal;
    font-style: normal;

}