twitter-bootstrap – 如何获取fontawesome工作在Azure网页部署
发布时间:2020-12-18 00:08:08 所属栏目:安全 来源:网络整理
导读:我们使用Twitter Bootstrap和 FontAwesome来支持图标。 当部署到我们的IIS服务器时,我需要添加MIME支持。 当部署到Azure,它看起来不像我有这种能力,所以现在我的图标不显示,因为它似乎不知道如何使用字体。 解决方法 只需将以下内容添加到web.config …
我们使用Twitter Bootstrap和
FontAwesome来支持图标。
当部署到我们的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> (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |