glyphicons-halflings-regular.woff2 not found 前台错误修正

错误内容如下:

首先在 web.config 里面加上如下内容:

  <system.webServer>
    <staticContent>
      <remove fileExtension=".woff" />
      <mimeMap fileExtension=".woff" mimeType="application/x-font-woff" />
      <remove fileExtension=".woff2" />
      <mimeMap fileExtension=".woff2" mimeType="application/font-woff2" />
    </staticContent>
  </system.webServer>

其次,在 IIS 的MIME 类型中追加上面指定的两种文件类型

 

posted @ 2018-07-17 11:29  道长1  阅读(622)  评论(0编辑  收藏  举报