【发布时间】:2014-05-05 19:32:12
【问题描述】:
我的网站:http://arethebaronsplaying.com/
在 IE 10 或 IE 11 中无法正确呈现字体。这是我的 css:
@font-face {
font-family: 'Mono Social Icons Font';
src: asset_url('fonts/MonoSocialIconsFont-1.10.eot');
src: asset_url('fonts/MonoSocialIconsFont-1.10.eot?#iefix') format('embedded-opentype'),
asset_url('fonts/MonoSocialIconsFont-1.10.woff') format('woff'),
asset_url('fonts/MonoSocialIconsFont-1.10.ttf') format('truetype'),
asset_url('fonts/MonoSocialIconsFont-1.10.svg#MonoSocialIconsFont') format('svg');
src: asset_url('fonts/MonoSocialIconsFont-1.10.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'hamilton18';
src: asset_url('fonts/hamilton_wood_type_foundry_-_hwtunitgothic-718-webfont.eot');
src: asset_url('fonts/hamilton_wood_type_foundry_-_hwtunitgothic-718-webfont.eot?#iefix') format('embedded-opentype'),
asset_url('fonts/hamilton_wood_type_foundry_-_hwtunitgothic-718-webfont.woff') format('woff'),
asset_url('fonts/hamilton_wood_type_foundry_-_hwtunitgothic-718-webfont.ttf') format('truetype'),
asset_url('fonts/hamilton_wood_type_foundry_-_hwtunitgothic-718-webfont.svg#MonoSocialIconsFont') format('svg');
src: asset_url('fonts/hamilton_wood_type_foundry_-_hwtunitgothic-718-webfont.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
在 chrome/safari/firefox 中一切看起来都很棒。有什么想法吗?
【问题讨论】:
-
你用的是哪个版本的IE
-
我在 IE 10 和 IE 11 中测试过,看起来都很糟糕。
-
我建议只使用fontsquirrel.com/tools/webfont-generator之类的工具。
-
在 IE 中检查控制台,确保所有内容都正确加载并且没有 404。
-
还有什么理论吗,我已经在字体设置里有
eot?#iefix了?
标签: css internet-explorer font-face