404 Not Found Glyphicons Bootstrap解决方法
问题描述:
是否可以在不向web.config添加此代码的情况下让引导程序图形工作?404 Not Found Glyphicons Bootstrap解决方法
<system.webServer>
<staticContent>
<remove fileExtension=".woff" />
<remove fileExtension=".woff2" />
<mimeMap fileExtension=".woff" mimeType="application/font-woff" />
<mimeMap fileExtension=".woff2" mimeType="application/font-woff" />
</staticContent>
</system.webServer>
不幸的是,我不能在我的工作场所添加这个,但仍然希望从bootstrap中使用分页。有没有其他解决方法?这些是我收到的错误。
也许以某种方式直接下载图像并更改引导CSS以找到正确的?我需要的只是此刻的分页。有任何想法吗?
答
即使找不到glyphicons-halflings-regular.woff2或glyphicons-halflings-regular.woff,您也应该能够使用引导分页。
默认情况下,Bootstrap的图标是glyphicons-halflings-regular.ttf。浏览器将使用它将找到的第一个兼容字体文件,并且ttf得到很好的支持。
欲了解更多信息:Why should we include ttf, eot, woff, svg,... in a font-face
也许事情是错在你的HTML。
答
你也许能够:
- 使用引导程序托管在CDN
- 构建或修改引导并删除WOFF字体
- 二者的结合中,修改自己的引导使用WOFF来自CDN的文件
- 重写Bootstrap的图形部分以使用图像(可能是最糟糕的想法,但它会起作用)。
这个问题可能会让你感兴趣:http://stackoverflow.com/questions/33133497/bootstrap-about-fonts-files-roles-and-usages –