无法获取 glyphicons-halflings-regular.woff2
Cannot get glyphicons-halflings-regular.woff2
我收到此错误消息 - 无法加载字形...为什么?
下面是我的代码的文件夹结构
只是您需要将 woff 和 woff2 MIME 类型添加到您的 web.config 或直接将它们添加到您的网络服务器配置文件中
<system.webServer>
<staticContent>
<remove fileExtension=".woff" />
<remove fileExtension=".woff2" />
<mimeMap fileExtension=".woff" mimeType="application/font-woff" />
<mimeMap fileExtension=".woff2" mimeType="application/font-woff" />
</staticContent>
</system.webServer>
抱歉,我把你的深色主题误认为是 visual studio,我还以为你用的是 ASP.NET
我留下这个代码片段是因为 ASP.NET 用户可能会遇到同样的问题
我收到此错误消息 - 无法加载字形...为什么?
下面是我的代码的文件夹结构
只是您需要将 woff 和 woff2 MIME 类型添加到您的 web.config 或直接将它们添加到您的网络服务器配置文件中
<system.webServer>
<staticContent>
<remove fileExtension=".woff" />
<remove fileExtension=".woff2" />
<mimeMap fileExtension=".woff" mimeType="application/font-woff" />
<mimeMap fileExtension=".woff2" mimeType="application/font-woff" />
</staticContent>
</system.webServer>
抱歉,我把你的深色主题误认为是 visual studio,我还以为你用的是 ASP.NET
我留下这个代码片段是因为 ASP.NET 用户可能会遇到同样的问题