gpt4 book ai didi

css - IE10 : @font-face doesn't work

转载 作者:行者123 更新时间:2023-11-28 09:03:26 25 4
gpt4 key购买 nike

我很难让这些字体在 IE10.Windows 8 上工作(尽管它在 safari 上工作正常)。

有什么想法吗?

<head>
<style>
@font-face {
font-family: 'Open Sans Condensed Light';
font-style: normal;
font-weight: 300;
src: local('Open Sans Condensed Light'), local('OpenSans-CondensedLight'), url(rsc/fonts/opensanscondensedlight.ttf) format('truetype');
}
@font-face {
font-family: 'Open Sans Condensed Bold';
font-style: normal;
font-weight: 700;
src: local('Open Sans Condensed Bold'), local('OpenSans-CondensedBold'), url(rsc/fonts/opensanscondensedbold.ttf) format('truetype');
}
</style>

[更新 1]

这是 jsFiddle http://jsfiddle.net/stephanedeluca/f3hduskv/

[更新 2]

在 ttf 文件上出现 404,我不明白。网址没问题。不过有一件事:类型显示为文本/html。 IIS 上 rtf 的 mime 类型是已知的。

enter image description here

最佳答案

IE10 是否禁用字体下载?它在 Internet Explorer 的设置中:安全设置-Internet 区域 > 下载 > 字体下载。选项有启用、禁用和提示。如果禁用,您将一无所获。

关于css - IE10 : @font-face doesn't work,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26822369/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com