我们正在使用 Twitter Bootstrap 和字体真棒 http://fortawesome.github.com/Font-Awesome用于图标支持。
当部署到我们的一台 IIS 服务器时,我需要添加 MIME 支持。
当部署到Azure时,看起来我没有这种能力,所以现在我的图标没有显示,因为它似乎不知道如何使用字体。
只需将以下内容添加到 web.config ...
<system.webServer>
<staticContent>
<remove fileExtension=".svg" />
<remove fileExtension=".eot" />
<remove fileExtension=".woff" />
<mimeMap fileExtension=".svg" mimeType="image/svg+xml" />
<mimeMap fileExtension=".eot" mimeType="application/vnd.ms-fontobject" />
<mimeMap fileExtension=".woff" mimeType="application/x-woff" />
</staticContent>
</system.webServer>
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)