Only some glyphicons showing in IE

不打扰是莪最后的温柔 提交于 2019-11-27 06:52:23

问题


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 []).

In Chrome all are showing.

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?


回答1:


I have found the solution. It was quite simple. Unfortunately I won't be able to use 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.

Se this article for further explanation: http://msdn.microsoft.com/en-us/library/ms533034(v=vs.85).aspx




回答2:


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.




回答3:


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.



来源:https://stackoverflow.com/questions/19026479/only-some-glyphicons-showing-in-ie

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!