当前位置: 移动技术网 > IT编程>开发语言>JavaScript > Bootstrap中glyphicons-halflings-regular.woff字体报404错notfound的解决方法

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

2019年03月29日  | 移动技术网IT编程  | 我要评论

 今天查看网站的源代码,发现有个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的解决方法,希望对大家有所帮助

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网