CSS3 @font-face Not Rendering Font in Opera 11.x

元气小坏坏 提交于 2019-12-08 08:59:28

This can happen sometimes when the font file is served with an unknown or unexpected content type header.

Verify that your WOFF and TTF files are being served with an Content-Type: "application/octet-stream" header.

If you're using Apache, add the following to your .htaccess file.

<IfModule mod_headers.c>
  <FilesMatch "\.woff$">
     Header set Content-Type "application/octet-stream"
  </FilesMatch>

  <FilesMatch "\.ttf$">
     Header set Content-Type application/octet-stream
  </FilesMatch>
</IfModule>

(And please post a jsFiddle of your code above if this doesn't work.)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!