wangjiachen

NetworkError: 404 Not Found - http://xxxxxxxx/xx-font.woff 

 

解决方法 asp.net 中会遇到一个@font-face 

问题: NetworkError: 404 Not Found - http://xxxxxxxx/xx-font.woff 

修改方法: 

方法一、从 IIS 入手: 

选中 iss 里的 MIME Types --> Add... --> File name extension:.woff MIME type:font/opentype

 

方法二、从 Web.config 入手 找到项目的 Web.config 文件,在文件的最后</system.webServer>标签前添加 <staticContent> <mimeMap fileExtension=".woff" mimeType="font/opentype" /> </staticContent>

 

原文地址:http://www.dou5.com/forum/view/558.html

分类:

技术点:

相关文章:

  • 2021-06-19
  • 2021-09-27
  • 2021-07-11
  • 2021-10-23
  • 2021-11-16
  • 2021-03-31
  • 2021-11-29
猜你喜欢
  • 2021-09-27
  • 2021-11-04
  • 2021-09-15
  • 2021-11-11
  • 2022-12-23
相关资源
相似解决方案