IIS网站引用css等路径问题导致界面显示不正常(出现404 not found)

解决办法1:
 
修改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>
 
 
解决办法2:
 
修改iis映射

猜你喜欢

转载自blog.csdn.net/qingkaqingka/article/details/89182092