.woff和.ttf字体不显示,服务器iis设置
默认IIS不支持.woff和.ttf格式,在网页上会显示404错误,这里我们去手动在iis里面添加
MIME类型设置:
MIME类型:
文件扩展名:.woff
MIME类型:application/x-font-woff
然后点击保存
常见类型:
.svg image/svg+xml
.woff application/x-font-woff
.woff2 application/x-font-woff
.eot application/vnd.ms-fontobject
.otf application/octet-stream
.ttf application/octet-stream
相关文章
.woff
iis