Bootstrap glyphicons随机消失

时间:2015-07-25 20:51:01

标签: twitter-bootstrap

今天早些时候,我使用bootstrap上传了一个网站,Glyphicons正在展示。 当我刚刚登录时,Glyphicons现在已经消失,看起来像空白方块,或者当我在我的IPod上看它时,它们看起来像IOS表情符号。

有人可以告诉我发生了什么以及如何解决这个问题吗?

包含Glyphicon的其中一个按钮的示例如下:

<a href="./change_password"><button class="btn btn-primary"><span class="glyphicon glyphicon-cog"></span> Change Password</button></a>

1 个答案:

答案 0 :(得分:1)

您可能正在加载Bootstrap作为资产;尝试通过CDN源加载它作为变通方法。把它放在你的html文件的head部分:

<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet">