【发布时间】:2015-05-07 13:00:02
【问题描述】:
我正在开发的应用程序抛出 404 错误,当 浏览器是 IE7 或 IE8。但它们适用于其他更新的版本或 在其他浏览器中。
错误是这样的:
/PresentationLayer/fonts/MyFontLt.ttf)%20format(%22truetype%22),%20url(fonts/MyFontRg.svg
在我的 CSS 文件中有这样的内容(适用于所有浏览器,IE7 和 IE8 除外):
@font-face{
font-family:'MyBold';
src:url("fonts/MyFontrgbd-webfont.eot");
src:url("fonts/MyFontrgbd-webfontd41d.eot?#iefix") format("embedded-opentype"),
url("fonts/MyFontrgbd-webfont.woff") format("woff"),
url("fonts/MyFontrgbd-webfont.ttf") format("truetype"),
url("fonts/MyFontrgbd-webfont.svg#MyFontBold") format("svg");
font-weight:400;font-style:normal}
@font-face{font-family:'MyFontRegular';
src:url("fonts/MyFontRgd41d.eot");
src:url("fonts/MyFontRgd41dd41d.eot?#iefix") format("embedded-opentype"),
url("fonts/MyFontRg.woff") format("woff"),
url("fonts/MyFontRg.ttf") format("truetype"),
url("fonts/MyFontRg.svg#MyFontRegular") format("svg");
font-weight:400;font-style:normal}
@font-face{font-family:'MyFontLight';
src:url("fonts/MyFontRg.ttf") format("truetype");
font-weight:400;font-style:normal}
@font-face{
font-family:'MyFontLight';
src:url("fonts/MyFontLt.ttf") format("truetype"),
url("fonts/MyFontRg.svg#MyFontRegular") format("svg");
font-weight:400;font-style:normal}
谁能帮忙解决这个问题?
注意:
- 我已经尝试过 Mime-Types
- 嵌入的字体权限以及 可安装
- ...
...
【问题讨论】:
-
IE7 和 IE8 不支持 TTF,只支持 EOT。你的 EOT 字体文件存在吗?
-
您好,EOT 字体文件存在!我还尝试添加 ** src:url("fonts/MyFontRgd41d.eot"); src:url("fonts/MyFontRgd41dd41d.eot?#iefix") ** ** font-family:'MyFontLight'; ** 但没有成功。我有同样的错误
标签: css internet-explorer-8 internet-explorer-7 http-status-code-404 font-face