Bootstrap中glyphicons-halflings-regular.woff字体报404错notfound的解决方法
时间:2021-01-15 11:14:16|栏目:JavaScript代码|点击: 次
今天查看网站的源代码,发现有个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>
栏 目:JavaScript代码
本文标题:Bootstrap中glyphicons-halflings-regular.woff字体报404错notfound的解决方法
本文地址:http://www.codeinn.net/misctech/45593.html






