如上图所示,源代码确实有fontawesome-webfont.woff,后来上网查了,是VS2013没配置mine类型,配置web.config更方便,在web.config文件中配置如下:
<system.webServer>
<staticContent>
<remove fileExtension=".woff"/>
<mimeMap fileExtension=".woff" mimeType="application/x-font-woff" />
</staticContent>
</system.webServer>
配置后网页上能识别fontawesome-webfont.woff了,直接在浏览器地址栏上输入fontawesome-webfont.woff便立即下载该文件。
主要参考stack overflow上的:
http://stackoverflow.com/questions/24104736/networkerror-404-not-found-fontawesome-webfont-woffv-4-0-3
其他方法在IIS上配置mine的参考:
http://www.webkaka.com/blog/archives/iis7-config-the-environment-for-font-awesome.html
http://blog.csdn.net/settingsun66/article/details/53006647