-1

我在 Internet Explorer 中加载图标时遇到问题。起初我以为是https但我的整个网站都在https中。

当我在 IE 中访问我的主页时,我的所有图标都不见了,我在网络会话中注意到以下内容:

  • 图标.eot?200 OK 应用程序/vnd.ms.fontobject
  • icons.woff?-ot1xzl 200 OK 应用程序/八位字节流
  • icons.tff?-ot1xzl 200 OK 字体/tff

但是,当我登录我的帐户时,我注意到所有图标再次显示,并且在网络会话中我只看到显示:

  • 图标.eot?200 OK 应用程序/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;
}

谢谢!

4

1 回答 1

0

我可以通过删除“Pragma:no-cache”和“Cache-Control:no-store”来解决这个问题,就像它在下面的链接中提到的那样。

IE11 无法加载图标字体

于 2016-02-24T04:05:23.100 回答