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

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

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

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

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

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

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

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

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

相关文章:

  • 2022-01-01
  • 2021-06-03
  • 2021-08-09
  • 2021-11-02
  • 2021-11-14
  • 2022-01-07
  • 2021-12-27
  • 2021-09-07
猜你喜欢
  • 2022-12-23
  • 2021-09-19
  • 2022-02-20
  • 2021-07-25
相关资源
相似解决方案