刷新后,字体真棒图标在IE中变得不可见

编程入门 行业动态 更新时间:2024-10-25 03:21:14
本文介绍了刷新后,字体真棒图标在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/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中变得不可见

本文发布于:2023-11-08 06:56:11,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1568656.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:图标   真棒   字体

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!