4

我无法在 Windows Phone 8 上显示 FontAwesome 图标。

  • 电话 (HTC 8X):在开发盒 (http) 上正常,但在 QA 服务器上不正常 (https)
  • Surface RT、Pro、台式机:在两台服务器上都可以

所有设备都使用 IE10。两种环境(Dev 和 QA)都使用 IIS7。看来 IE10 手机在处理可下载字体方面与 IE10 平板电脑/台式机有些不同。

有没有其他人经历过这个?

4

1 回答 1

10

It was due to a missing MIME type. I was wrong about both environments using IIS7; The QA server uses IIS6. We added application/x-font-woff to the IIS configuration, and that fixed it.

UPDATE: Add this to your Web.config to associate .woff files with the correct MIME type, so the server will know what to do when such a file is requested:

<configuration>
    <system.webServer>
        <staticContent>
            <mimeMap fileExtension=".woff" mimeType="application/x-font-woff" />
        </staticContent>
    </system.webServer>
</configuration>
于 2013-03-22T18:41:40.360 回答