关于 IIS 中 iconfont.woff 报 404(Not Found) 的缘由即解决方法

在使用layui过程当中,控制台报错:html

layui/font/iconfont.woff?v=240 net::ERR_ABORTED 404 (Not Found)

缘由是  IIS 中未添加相应MIME类型,只需在 IIS 主页双击进入【MIME类型】,并添加相应扩展名及MIME类型对应关系便可。app

另外还有其它相关对应关系以下:svg

.svg         image/svg+xml
.woff2      application/x-font-woffui

 【参考】https://zhidao.baidu.com/question/1544087349971509827.htmlspa

相关文章
相关标签/搜索