css - Font Face Gotham 无法在我的 IE 8、9、10 上运行,但在我 friend 的 IE 上运行良好?

标签 css internet-explorer fonts font-face

我有 GothamBold、GothamBook 和 GothamThin 字体。我在 CSS 中使用该字体设置字体,如下所示:

@font-face {
    font-family: 'GothamBold';
    src: url("../../fonts/GothamBold.eot"); /* IE9 Compatibility Modes */
    src: url("../../fonts/GothamBold.eot?#iefix") format("embedded-opentype"), /* Safari, Android, iOS */
         url("../../fonts/GothamBold.woff") format("woff"), 
         url("../../fonts/GothamBold.ttf") format("truetype"),
         url("../../fonts/GothamBold.svg#GothamBold") format("svg");
}

@font-face {
    font-family: 'GothamBook';
    src: url("../../fonts/GothamBook.eot"), /* IE9 Compatibility Modes */
         url("../../fonts/GothamBook.eot?#iefix") format("embedded-opentype"), /* Safari, Android, iOS */
         url("../../fonts/GothamBook.woff") format("woff"), 
         url("../../fonts/GothamBook.ttf") format("truetype"),
         url("../../fonts/GothamBook.otf") format('opentype'),
         url("../../fonts/GothamBook.svg#GothamBook") format("svg");
}

@font-face {
    font-family: 'GothamThin';
    src: url("../../fonts/GothamThin.eot"), /* IE9 Compatibility Modes */
         url("../../fonts/GothamThin.eot?#iefix") format("embedded-opentype"), /* Safari, Android, iOS */
         url("../../fonts/GothamThin.woff") format("woff"), 
         url('../../fonts/GothamThin.ttf'); /* Safari, Android, iOS */
}

但它不适用于 IE,即使它适用于 Chrome、Firefox 和 Safari。有什么想法吗?

我已经尝试使用从 fontsquirrel 获得的 Montserrat 字体套件,但仍然无法在 IE 上加载它。

我已经在 IIS 中检查了我的 MIME 类型,每个扩展名都有以下类型: .eot - 应用程序/vnd.ms-字体对象 .woff - 字体/x-woff .ttf - 应用程序/八位字节流 .svg - 图片/svg+xml

它仍然无法在我的 IE 8、9、10 上运行。但它适用于我 friend 的 IE???怎么可能???

最佳答案

原来这是因为互联网选项安全设置:| - 只需转到 Internet 选项 > 安全 > 自定义级别 > 查找字体下载 > 选择启用。刷新你的页面,然后 tadaaa~.. 是的,它有效。

关于css - Font Face Gotham 无法在我的 IE 8、9、10 上运行,但在我 friend 的 IE 上运行良好?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25907208/

相关文章:

html - 表单提交按钮移动切割图像

javascript - 如何使用 JavaScript 检测 Internet Explorer (IE) 和 Microsoft Edge?

css - UCO(未识别的 CSS 对象)在 Firefox 中向我的文本区域添加更大的字体大小

html - 如何使IE中网页上的文本框与Chrome中的文本框相同

linux - Fixed[Misc] 字体在哪里

fonts - Wine 和西里尔字母字体

javascript - 尝试创建轮播效果时出错

javascript - 范围输入运行者进度填充颜色

CSS 选择器 : why `.classA + .classB:nth-of-type(3)` not working?

html - 在具有 haslayout 属性的 div 中输入,即具有 "margin-left"