进入IIS管理器,找到MIME类型,添加
扩展名 MIME类型
.woff application/x-font-woff
.svg image/svg+xml
或者在项目目录创建web.config文件
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<staticContent>
<mimeMap fileExtension=".woff" mimeType="application/x-font-woff" />
</staticContent>
</system.webServer>
</configuration>