twitter-bootstrap 只有一些字形显示在 IE 中
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/19026479/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Only some glyphicons showing in IE
提问by olahell
Me and my colleague have been trying to solve this problem for awhile and we can not get it to work. Hopefully someone out there is smarter than us and have some good input on this.
我和我的同事一直在努力解决这个问题,但我们无法让它发挥作用。希望有人比我们更聪明,并在这方面有一些好的意见。
When using IE8, IE9 or IE10 to visit websites http://glyphicons.com/or http://getbootstrap.com/components/not all the glyphicons are showing (some are showing but others just show as boxes []).
当使用 IE8、IE9 或 IE10 访问网站http://glyphicons.com/或http://getbootstrap.com/components/ 时,并非所有字形都显示出来(有些显示,但其他只显示为框 [])。
In Chrome all are showing.
在 Chrome 中都显示。
EDIT: I should add that this is on computers on our company network. Could there be a setting here that prevents us for show all glyphicons?
编辑:我应该补充一点,这是在我们公司网络上的计算机上。这里是否有设置阻止我们显示所有字形?
EDIT2: I now have suspicions that our Group Policy disables XMLHTTP for all users on network. Therefore, is it possible to encode the halfling font and use it directly in the CSS?
EDIT2:我现在怀疑我们的组策略对网络上的所有用户禁用了 XMLHTTP。因此,是否可以对半身人字体进行编码并直接在CSS中使用它?
回答by olahell
I have found the solution. It was quite simple. Unfortunately I won't be able to use Glyphicons.
我找到了解决办法。这很简单。不幸的是,我将无法使用 Glyphicons。
IE have a setting to restrict font download. This is enabled by group policy and cannot be changed on standard workstations. I have been able to recreate the same behavior on my own laptop by restricting font download.
IE 有一个限制字体下载的设置。这是由组策略启用的,不能在标准工作站上更改。通过限制字体下载,我已经能够在我自己的笔记本电脑上重新创建相同的行为。
Se this article for further explanation: http://msdn.microsoft.com/en-us/library/ms533034(v=vs.85).aspx
请参阅这篇文章以获得进一步的解释:http: //msdn.microsoft.com/en-us/library/ms533034(v=vs.85).aspx
回答by Fractaliste
To answer your comment olahell, if you count icons you will get 470 icons although it's write 420 with IE8. It's maybe an old forgotten image only shown on old IE version.
为了回答您的评论 olahell,如果您计算图标,您将获得 470 个图标,尽管它是用 IE8 写的 420。这可能是一个旧的被遗忘的图像,只显示在旧的 IE 版本上。
回答by SpliFF
It looks like the Glyphicons site does some browser sniffing to come up with the 470 / 420 icon figure. The most likely reason for that is that 50 icons dont work in IE; and that is probably due to IE having no SVG support.
看起来 Glyphicons 站点做了一些浏览器嗅探来提供 470 / 420 图标图。最可能的原因是 50 个图标在 IE 中不起作用;这可能是由于 IE 没有 SVG 支持。

