字体真棒图标未在IE 11中显示,但在其他浏览器中显示 [英] font awesome icon is not appearing in IE 11, but showing in other browsers
问题描述
我是字体真棒图标的新手.我有一个页面,其中有一个过滤器,用户可以在其中搜索数据.我在搜索链接之前添加了字体真棒图标(如下面的屏幕截图所示),我可以在除IE 11之外的所有浏览器中看到此图标.有趣的是,我在其他页面中也有此图标,并且可以在IE中看到它. 11,但是我只能在此页面上(见下面的屏幕截图)看不到该图标.
I am new to font-awesome icons. I have one page in which there is a filter where user can search the data. I have added font awesome icon just before the search link (as per below screenshot), I can see this icon in all the browsers except IE 11. The funny thing is I have this icon in other pages also and I can see it in IE 11, but I cannot see this icon on this (as per below screenshot) page only.
这是IE 11的屏幕截图:
Here is the screenshot from IE 11:
这是chrome的屏幕截图:
Here is the screenshot from chrome:
有人可以帮我吗?
推荐答案
我遇到了同样的问题,我通过在<head>
:
中将此元标记添加为 FIRST 标记来解决了该问题.
<meta http-equiv="X-UA-Compatible" content="IE=edge">
I had the same issue, I solved it by adding this meta tag as the FIRST tag in <head>
:
<meta http-equiv="X-UA-Compatible" content="IE=edge">
Also, according to the official documentation, check the following:
对于Internet Explorer :您不使用Cache-Control标头中的
no-store
选项提供文件(参考号:#6454);
对于Internet Explorer和HTTPS :您不使用Pragma标头中的no-cache
选项提供文件.
For Internet Explorer: you don't serve files with
no-store
option in Cache-control header (Ref: #6454);
For Internet Explorer and HTTPS: you don't serve files withno-cache
option in Pragma header.
这篇关于字体真棒图标未在IE 11中显示,但在其他浏览器中显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!