ie9 doctype和字体?

Rak*_*age 6 internet-explorer google-font-api google-webfonts internet-explorer-9

<!doctype html>
<html>
  <head>
    <title>Test Ubuntu</title>
    <link href="http://fonts.googleapis.com/css?family=Ubuntu:regular" rel="stylesheet" type="text/css" />
    <style>
    body { font-family: 'Ubuntu', sans-serif; }
    </style>
  </head>
  <body>
    Test Ubuntu
  </body>
</html>
Run Code Online (Sandbox Code Playgroud)

显示chrome和firefox中的字体...但在ie9中,如果我添加了doctype行,它会中断!?没有它,工作正常.

我希望它能在所有三种浏览器中运行(使用doctype?因为有时像css这样的其他东西依赖于在那里使用doctype?或者如果可能的话,它看起来不正确?)

谢谢!

pau*_*cam 3

事实上,这看起来是一个功能。如果打开开发人员工具栏 (F12),选择“脚本”选项卡,然后在此测试页面上点击刷新,您应该会看到如下内容:

CSS3117: @font-face failed cross-origin request. Resource access is restricted. font?kit=_tMhxyW6i8lbI7YsUdFlGA

看起来这个问题在另一篇文章中得到了回答。