我正面临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/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中变得不可见
发布评论