Bootstrap中glyphicons-halflings-regular.woff字体报404错notfound的解决方法

时间:2017-01-19    点击:114   

 今天查看网站的源代码,发现有个glyphicons-halflings-regular.woff文件没有找到,因为我的网站使用了bootstrap的Glyphicons 字体图标,因此需要加载Glyphicons Halflings的相关文件,但是我的文件中明明有这个文件那怎么会报404错误呢?

查看了下博客上查到了解决方案 跟大家分享一下 在web.config 中添加如下代码段

 <system.webServer>
  <staticContent>
<remove fileExtension=".woff"/>
<mimeMap fileExtension=".woff" mimeType="application/font-woff" />
</staticContent>
 </system.webServer>

以上所述是小编给大家介绍的Bootstrap中glyphicons-halflings-regular.woff字体报404错notfound的解决方法,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对本站网站的支持!

JS实现touch 点击滑动轮播实例代码
详解前端构建工具gulpjs的使用介绍及技巧
ajax 提交数据到后台jsp页面及页面跳转问题
ajax与json 获取数据并在前台使用简单实例
JS中如何实现点击a标签返回页面顶部的问题
> 返回     
地址:上海市普陀区胶州路941号长久商务中心 电话: QQ:
© Copyright 2012 上海网络 Product All Rights Reserved