Font Awesome fonts show up as boxes on IE8

后端 未结 10 1732
[愿得一人]
[愿得一人] 2020-12-05 05:01

So I am using Font Awesome in a project and in testing I\'m running into issues with IE8.

On Windows IE9, Chrome and Firefox show the font properly (As does Firefox,

10条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-05 05:53

    This appears to be a really common issue and according to this discussion has to do with the character being attached using :before. I actually found the easiest way to get it working in IE 8 is to not use the fa-name class and insert the character manually.

    e.g. Instead of:

    
    

    use:

    
    

    The character codes can be found on the Font Awesome Cheatsheet. This seems to work all the time, no matter what IE version.

    Hope this helps someone,

    Jason

提交回复
热议问题