我在Internet Explorer中加载图标时遇到问题。 起初我以为这是一个https,但我的整个网站都是https。
当我在IE中转到我的主页时,我的所有图标都丢失了,我在网络会话中注意到以下内容:
- icons.eot? 200 OK application/vnd.ms.fontobject
- icons.woff?-ot1xzl 200 OK application/octet-stream
- icons.tff?-ot1xzl 200 OK font/tff
但是,当我登录我的帐户时,我注意到所有图标再次显示,在网络会话中,我只看到显示以下内容:
- icons.eot? 200 OK application/vnd.ms.fontobject
不确定为什么通过登录我的帐户,我的所有图标都开始再次显示,并且当我未登录时仅显示上述图标而不是所有 3 个图标。 有谁知道我如何解决这个问题? 也许是会话问题?
以下是我保存在CSS文件中的内容:
@font-face {
font-family: 'icomoon';
src:url('../fonts/pb-icons.eot?-ot1xzl');
src:url('../fonts/pb-icons.eot?#iefix-ot1xzl') format('embedded-opentype'),
url('../fonts/pb-icons.woff?-ot1xzl') format('woff'),
url('../fonts/pb-icons.ttf?-ot1xzl') format('truetype'),
url('../fonts/pb-icons.svg?-ot1xzl#icomoon') format('svg');
font-weight: normal;
font-style: normal;
}
谢谢!
我能够通过删除"Pragma:无缓存"和"缓存控制:无存储"来解决此问题,就像下面的链接中提到的那样。
IE11 中未加载图标字体