css - font-face 似乎在 IE8 中不起作用?

标签 css internet-explorer-8 font-face opentype

我的 CSS 中有以下行。

@font-face { font-family: Keffeesatz; src: url(/Styles/YanoneKaffeesatz-Light.otf) format("opentype") }
@font-face { font-family: KeffeesatzBold; src: url(/Styles/YanoneKaffeesatz-Bold.otf) format("opentype") }

在 IE9 中,这些会出现。在 IE8 中,它使用后备字体 Arial。我如何让它在 IE8 中工作?

最佳答案

您需要提供字体的 EOT 版本,以便旧版本的 IE 嵌入它。他们不会识别任何其他格式,这就是您观察到 Arial 后备的原因。

把你的字体带到Font Squirrel @font-face Generator它会为您准备好一切,包括一组新的 CSS @font-face 规则以用于您现有的规则。

关于css - font-face 似乎在 IE8 中不起作用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9517441/

相关文章:

javascript - AngularJS 在 IE8 中未定义

html - IE8 的 Bootstrap 3 问题

html - 字体在 mailchimp 模板预览中有效,但在电子邮件本身中无效

css - 背景图像不会出现在 IE10 中

ios - Ipad 上的背景图像不显示 100%

javascript - 当没有属性更改时,在 jQuery 中不会触发 CSS 转换事件

asp.net - CSS 和缺少常量/变量问题?

javascript - 如何捕获 :after content in IE8?

css - @font-face 在 Chrome 和 Firefox 中不工作

css - @font-face 字体变体