【发布时间】:2011-04-11 06:41:54
【问题描述】:
我一直在开发一个使用Google Fonts API 的网站。很棒,据说已经在 IE 中测试过了,但是在 IE 8 中测试时,字体根本没有样式。
我包含了字体,如 Google instructs,因此:
<link href="http://fonts.googleapis.com/css?family=Josefin+Sans+Std+Light"
rel="stylesheet" type="text/css" />
并将其名称添加到 CSS 中字体系列的前面:
body { font-family: "Josefin Sans Std Light", "Times New Roman", Times, serif; font-size: 16px; overflow-y: scroll; overflow-x: hidden; color: #05121F; }
在 Chrome、Firefox、Safari 中运行起来就像一个魅力。 IE 8 中没有骰子。有人知道为什么吗?
【问题讨论】:
-
使用 IE11 模拟回 IE8 的开发人员注意事项:您必须确保将 用户代理字符串 切换回旧 IE 版本,如只是切换文档模式不会让 Google 的服务器知道发送正确的字体类型 (EOT)。
标签: css internet-explorer webfonts google-webfonts