我的字体-face在Google中有一个警告:
资源被解释为字体,但传输的MIME类型为application/octet-stream:".../Content/Fonts/iconFont.ttf"。
即使我有这个警告,它仍然可以工作,但我更喜欢避免这个警告。
这是我的声明:
@font-face {
font-family: 'iconFont';
src: url('../Fonts/iconFont.eot?#iefix') format('embedded-opentype'),
url('../Fonts/iconFont.svg#iconFont') format('image/svg+xml'),
url('../Fonts/iconFont.woff') format('font/x-woff'),
url('../Fonts/iconFont.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
我已经搜索了其他帖子,但到目前为止没有运气。
请注意,我的服务器是来自Microsoft的IIS。
有什么办法可以避免这个警告吗?
谢谢。
application/x-font-woff
已经变成了application/font-woff
。 - renadeen