Bootstrap3 - Glyphicons are not displayed in Chrome, only

前端 未结 12 2430
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-08 19:13

Strangely, none of Bootstrap3 glyphicons are displaying in Chrome v31(displays a small square). But, works fine in FF v26, Opera v18, Safari v5.1 and IE v10. Also, works fine in

12条回答
  •  心在旅途
    2021-02-08 19:55

    I discovered that upon inspecting the CSS of bootstrap.min.css that the directory location for "fonts" had added spaces which meant that it was calling for files that don't exist because the file names don't have those spaces in them. For example, it was listed all the way through every one as

    .. / fonts / glyphicons - halflings - regular.eot

    when it should have been

    .. /fonts/glyphicons-halflings-regular.eot

    Once I deleted the spaces, re-uploaded the CSS, cleared the browser cache, and reloaded (F5 button) the glyphicons finally showed up. Prior to removing the extra spaces the only other option that worked for me was that given by Gines Hidalgo who suggested downloading the CSS through a hyperlink. But with the discovery that removing the extra spaces fixes the problem that option is no longer necessary.

提交回复
热议问题