如何获得fontawesome在一个蓝色的网页部署工作? [英] How to get fontawesome to work on an Azure web pages deployment?

查看:170
本文介绍了如何获得fontawesome在一个蓝色的网页部署工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在使用Twitter的引导和 FontAwesome 以图标的支持。

We are using Twitter Bootstrap and FontAwesome for icon support.

当部署到我们的IIS服务器中的一个我需要添加MIME支持。

When deploying to one of our IIS servers I need to add MIME support.

当部署到Azure中,它看起来并不像我有这个能力,所以现在我的图标不显示出来,因为它似乎不知道如何使用的字体。

When deploying to Azure, it doesn't look like I have this ability, so now my icons aren't showing up because it doesn't seem to know how to use the font.

推荐答案

只需添加以下到Web.config ...

Just add the following to the 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>

这篇关于如何获得fontawesome在一个蓝色的网页部署工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆