【问题标题】:bootstrap: bitcoin glyphicon not appearing引导程序:比特币字形图标没有出现
【发布时间】:2015-04-21 02:45:02
【问题描述】:

我似乎无法显示比特币字形图标:

代码:(玉)

.input-group
                 input.form-control(type="text" placeholder="USD")
                 span.input-group-addon.glyphicon.glyphicon-usd

              .input-group
                 input.form-control(type="text" placeholder="BTC (Approx.)")
                 span.input-group-addon.glyphicon.glyphicon-bitcoin

usd glyphicon 看起来没有问题,但比特币没有。为什么会这样?

编辑:这是所要求的 HTML 输出:

<input placeholder="BTC (Approx.)" class="form-control" type="text"><span class="input-group-addon glyphicon glyphicon-bitcoin"></span>

【问题讨论】:

  • 呈现的 HTML 输出是什么?
  • @DavidG 添加为编辑

标签: twitter-bootstrap pug glyphicons


【解决方案1】:

您使用的不是最新版本的 Bootstrap。比特币字形图标仅在 3.3.2 版本中引入。

例子:

<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js"></script>


<div class="input-group">
  <input placeholder="BTC (Approx.)" class="form-control" type="text">
  <span class="input-group-addon glyphicon glyphicon-bitcoin"></span>
</div>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2014-11-04
    • 2018-07-15
    • 2012-07-12
    • 2020-07-26
    • 1970-01-01
    • 2014-07-12
    • 1970-01-01
    相关资源
    最近更新 更多