字体真棒没有出现在Internet Explorer 8中 [英] Font Awesome not appearing in Internet Explorer 8

查看:137
本文介绍了字体真棒没有出现在Internet Explorer 8中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们最近开发了一个网站,它非常依赖Font Awesome作为其设计的一部分。我们使用之前的标准实现:内容及其提供的CSS。

We have recently developed a website with a strong reliance on Font Awesome as part of it's design. We're using the standard implementation with before:content and their supplied CSS.

由于某种原因,Font Awesome没有在IE8中显示。我花了几个小时进行故障排除并尝试各种修复,没有运气。

For some reason Font Awesome isn't displaying in IE8. I've spent quite a few hours troubleshooting and trying various fixes, with no luck.

我有:


  • 将EOT的mimetype设置为application / vnd.ms-fontobject

  • 将OTF,TTF的mimetype设置为application / octet-stream

  • 加载所有CSS后执行HTML5Shiv。

  • 在页面加载时重新加载CSS或DOM的各种尝试

  • Set the mimetype of EOT to application/vnd.ms-fontobject
  • Set the mimetype of OTF, TTF to application/octet-stream
  • Executed HTML5Shiv after all CSS has been loaded.
  • Various attempts to reload the CSS or DOM on page load

以下是网站: http://www.tetakere.org.nz - Hotlinks框是Font Awesome的一个很好的例子

Here is the website: http://www.tetakere.org.nz - the Hotlinks box is a good example of Font Awesome

有没有人对让这个网站显示Font Awesome的其他方法有任何想法?

Has anyone got any ideas on other approaches to getting this website to display Font Awesome?

推荐答案

经过一番痛苦的排查后,我终于解决了问题。

After some painful troubleshooting I finally worked it out.

解决方案是将HTML5Shiv从< head> 部分加载到< / body> 标记之前。

The solution was to move the loading of HTML5Shiv from the <head> section to just before the </body> tag.

<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</body>

这篇关于字体真棒没有出现在Internet Explorer 8中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆