刷新后,字体真棒图标在IE中变得不可见 [英] Font awesome icons becomes invisible in IE after refresh

查看:107
本文介绍了刷新后,字体真棒图标在IE中变得不可见的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正面临IE浏览器的问题,它正在加载第一次加载的图标.但是,如果我刷新页面,则图标不可见.您能告诉我如何从服务器端解决此问题吗?这与 Font-awesome消失有关在刷新所有ie浏览器ie11,ie10,ie9 之后.但是它没有完整的解决方案

I am facing the issue with IE browser.It is loading the icons for first time load. but if i refresh the page the icons are not visible. Can you please tell me how to fix this from server side? This is related to Font-awesome disappears after refresh for all ie browsers ie11,ie10,ie9 . but it does nt have the complete solution

推荐答案

我们遇到了同样的问题,因为我们将FA CSS文件存储在本地.字体@import刷新失败,可能是因为它执行的HTTP调用不同于本地文件的HTTP调用.我们恢复了他们的CDN,它解决了这个问题.如果您下载了FA文件并且没有通过CDN提取它们,则将<head>中的<link>标记更改为:

We had this same problem because we were storing the FA CSS file locally. The font @import's would fail on refreshes, probably because it does a different HTTP call than the one for the local file. We reverted to their CDN and it fixed the problem. If you downloaded the FA files and aren't pulling them in through a CDN, then change your <link> tag in your <head> to:

<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">

一旦我们做到了,每次刷新都会为FontAwesome提供服务,而不会出现问题.

Once we did that FontAwesome was being served up on every refresh without problem.

这篇关于刷新后,字体真棒图标在IE中变得不可见的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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