twitter-bootstrap – 如何获取fontawesome工作在Azure网页部署?

前端之家收集整理的这篇文章主要介绍了twitter-bootstrap – 如何获取fontawesome工作在Azure网页部署?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我们使用Twitter Bootstrap和 FontAwesome支持图标。

当部署到我们的IIS服务器时,我需要添加MIME支持

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

解决方法

只需将以下内容添加到web.config …
  1. <system.webServer>
  2. <staticContent>
  3. <remove fileExtension=".svg" />
  4. <remove fileExtension=".eot" />
  5. <remove fileExtension=".woff" />
  6. <mimeMap fileExtension=".svg" mimeType="image/svg+xml" />
  7. <mimeMap fileExtension=".eot" mimeType="application/vnd.ms-fontobject" />
  8. <mimeMap fileExtension=".woff" mimeType="application/x-woff" />
  9. </staticContent>
  10. </system.webServer>

猜你在找的Bootstrap相关文章