我已经用最新的文件替换了 glyphicons-halflings-regular.woff/eot/svg/ttf 文件,但我仍然无法让 glyphicon-earphone 工作。我得到了一个底部开口的薄矩形。 glyphicon-phone-alt 也是如此,但其他大多数都能完美运行。
我试图在 Bootply.com 上重现该问题,但它在那里按预期工作。无论如何,这是链接和代码。
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label for="phone">Phone</label>
<div class="input-group">
<span class="input-group-addon"><i class="glyphicon glyphicon-earphone"></i></span>
<input type="text" class="form-control" name="phone" id="contact_phone">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label for="cell">Cell</label>
<div class="input-group">
<span class="input-group-addon"><i class="glyphicon glyphicon-phone"></i></span>
<input type="text" class="form-control" name="cell" id="contact_cell">
</div>
</div>
</div>
</div>
这是 Bootstrap 3.0.0 中的错误吗?如果是这样 - 我猜想 Bootply 站点已经为 3.0.0 应用了“补丁/修复”?
最佳答案
我解决了。 Github 上的 glyphicon 文件比从 GetBootstrap.com 下载的文件更新。这样就解决了。
关于twitter-bootstrap - Bootstrap 3.0.0 glyphicon-耳机未加载,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18431588/