font-face+chrome+django:如何避免消息“资源解释为字体,但使用 MIME 类型 application/octet-stream 传输。”
我的字体规则是:
font-face{
font-family: 'name';
src: url(path) format("truetype");
}
但是 dom 检查器(在 Chrome+django 中)抛出此警告: 资源解释为字体,但使用 MIME 类型 application/octet-stream 进行传输。
那么如何避免这种情况呢?
My font-face rules are:
font-face{
font-family: 'name';
src: url(path) format("truetype");
}
but dom inspector (in Chrome+django) throws this warning:
Resource interpreted as Font but transferred with MIME type application/octet-stream.
So how to avoid this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我只是想知道为什么你“必须”使用 font-face 。也许使用 Cufon 可以解决这个问题?
I am just wondering why you "must" use font-face. Perhaps using Cufon instead would resolve this?