我的 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/