如何为IIS增加svg和woff等字体格式的MIME
现在字体图标已经渐渐代替了图片了,移动端用起来也很方便。
使用了字体文件来显示矢量的图标,为了能在IIS上正常显示图标,可以通过增加iis的MIME-TYPE来支持图标字体文件
下面就把IIS增加svg、eot 、woff、otf 、ttf 等字体格式文件的MIME。
增加以下两种文件类型即可:
.svg image/svg+xml
.woff application/font-woff
我把其它几种也写在下面,供以后学习:
.eot application/vnd.ms-fontobject
.otf application/octet-stream
.ttf application/octet-stream
(完)
原文链接:http://www.86y.org/art_detail.aspx?id=764
使用了字体文件来显示矢量的图标,为了能在IIS上正常显示图标,可以通过增加iis的MIME-TYPE来支持图标字体文件
下面就把IIS增加svg、eot 、woff、otf 、ttf 等字体格式文件的MIME。
增加以下两种文件类型即可:
.svg image/svg+xml
.woff application/font-woff
我把其它几种也写在下面,供以后学习:
.eot application/vnd.ms-fontobject
.otf application/octet-stream
.ttf application/octet-stream
(完)
原文链接:http://www.86y.org/art_detail.aspx?id=764
还没人赞这篇日记
热门话题 · · · · · · ( 去话题广场 )
- 你最重要的一条人生经验 18.4万次浏览
- 让你产生奇妙联想的生活瞬间 26.9万次浏览
- 秋天好,上班坏 新话题 · 2.1万次浏览
- 成长过程中最叛逆的时光 9381次浏览
- 情绪也需要“断舍离” 2.3万次浏览
- 按下快门的那一瞬间 8062次浏览