Font Awesome 4.2.0在IE11中不呈现兼容模式打开“开” [英] Font Awesome 4.2.0 not rendering in IE11 with Compatibility Mode turned "On"

查看:787
本文介绍了Font Awesome 4.2.0在IE11中不呈现兼容模式打开“开”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Font Awesome 4.2.0在Chrome,Firefox,Safari,Opera和Internet Explorer 11中完美呈现(但仅在兼容模式关闭时)。将兼容模式设置为开时,不显示字形。我试过使用一个试验过的Font Awesome 4.2.0 CDN,我在其他项目中使用,使用Font Awesome CSS,并添加< meta http-equiv =X从GitHub帖子建议的< head> 中的-UA-Compatiblecontent =IE = edge> 以兼容性模式打开时呈现。没有这些解决方案工作,兼容模式关闭不是这个项目的一个选项。所以,总之,我的问题是这个。如何在兼容模式打开的情况下,在Internet Explorer 11中显示Font Awesome 4.2.0渲染?

Font Awesome 4.2.0 renders perfectly in Chrome, Firefox, Safari, Opera, and Internet Explorer 11 (but only with Compatibility Mode turned "Off"). With Compatibility Mode turned "On" no glyphicons render. I've tried using a tried-and-true Font Awesome 4.2.0 CDN that I've used in other projects, using the Font Awesome CSS, and adding the <meta http-equiv="X-UA-Compatible" content="IE=edge"> in the <head> as suggested from a GitHub post to allow the glyphs to render with Compatibility Mode turned "On". None of those solutions work and having Compatibility Mode turned "Off" is not an option for this project. So, in conclusion, my question is this. How can I have Font Awesome 4.2.0 render in Internet Explorer 11 with Compatibility Mode turned "On"?

推荐答案

FIRST < meta http-equiv =X-UA-Compatiblecontent =IE = edge> 标记在< head> ,以使其工作。希望这可以帮助有此问题的任何人!

Found the solution. <meta http-equiv="X-UA-Compatible" content="IE=edge"> needs to be placed as the FIRST tag in the <head> in order for it to work. Hope this helps anyone else who has this issue!

这篇关于Font Awesome 4.2.0在IE11中不呈现兼容模式打开“开”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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