Css @字体不显示在Internet Explorer上它在Google chrome中工作
这在Google Chrome中有效,但在Internet Explorer中无效。它在IE中本地运行,但在我发布时不起作用。Paul Irish就此主题发表了一篇优秀的文章: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'); }为什么要添加
@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;
}