NetworkError: 404 Not Found - http://xxxxxxxx/xx-font.woff

NetworkError: 404 Not Found - http://xxxxxxxx/xx-font.woff 

 

解决方法 asp.net 中会遇到一个@font-face 

问题: NetworkError: 404 Not Found - http://xxxxxxxx/xx-font.woff 

修改方法: 

方法一、从 IIS 入手: 

选中 iss 里的 MIME Types --> Add... --> File name extension:.woff MIME type:font/opentype

 

方 法二、从 Web.config 入手 找到项目的 Web.config 文件,在文件的最后</system.webServer>标签前添加 <staticContent> <mimeMap fileExtension=".woff" mimeType="font/opentype" /> </staticContent>

posted @ 2014-11-23 13:54  sovf  阅读(311)  评论(0编辑  收藏  举报