Html 我的字体在IE11中不起作用
我的字体在IE11中不工作,我想知道是否有人知道为什么Html 我的字体在IE11中不起作用,html,css,fonts,Html,Css,Fonts,我的字体在IE11中不工作,我想知道是否有人知道为什么 @font-face { font-family: myFont; src: url('LT_21152.eot'); } @font-face { font-family: myFont; src: url('LT_21152.ttf'); } font-family: myFont, myFont_IE, Arial, Helvetica, sans-serif
@font-face {
font-family: myFont;
src: url('LT_21152.eot');
}
@font-face {
font-family: myFont;
src: url('LT_21152.ttf');
}
font-family: myFont, myFont_IE, Arial, Helvetica, sans-serif;
div {
font-family: myFont;
font-size: 2em;
}
您是否有WOFF或OTF文件?可能的副本您是否尝试将
格式('embedded-opentype')
添加到字体的EOT扩展名?我发现了此问题,我将进一步调查:CSS3114:@font-face未通过opentype嵌入权限检查。权限必须是可安装的。也不要将此语法用于@font-face
。即使嵌入权限已固定,也要使用一个规则和多个源,因此src:url('moo.eot')格式('embedded-opentype')、url('moo.ttf')格式('truetype')、url(..…
,但更重要的是:IE11不需要.eot,只有IE8及以下版本需要,而且您不想使用.ttf,这是一种系统字体格式,需要经过更严格的验证。对于IE11和所有现代浏览器,请使用WOFF。