html - 在 Bootstrap 表中添加 Bootstrap Glyphicons

标签 html css twitter-bootstrap

我正在尝试在表格单元格中添加一个 Glyphicon。我正在使用具有以下骨架的 Bootstrap 表:

<table class="table table-striped table-bordered table-hover table-condensed">
    <thead>
      <tr>
        <th>#</th>
        <th>Firstname</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td></td>
        <td></td>
      </tr>
      <tr>
        <td></td>
        <td></td>
      </tr>
      <tr>
        <td></td>
        <td></td>
      </tr>
    </tbody>
  </table>

我像这样将 Glyphicon 插入到其中一个单元格中:

<td>
  <span class="glyphicons glyphicons-magnet"></span>
</td>

但是它不起作用。 提前谢谢你。

最佳答案

使用

<span class="glyphicon glyphicon-magnet"></span>

关于html - 在 Bootstrap 表中添加 Bootstrap Glyphicons,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49613403/

相关文章:

javascript - 监控dom元素属性变化?

javascript - 如何使用 CSS 创建一个三 Angular 形 div,它在单击时会消失,但在单击 'overflow' 部分时不会消失?

css - 带背景图片的全屏元素 + 固定菜单

javascript - 当 javascript 更改容器大小时,Box-shadow 不会正确重新呈现。 (IE9/10)

python - Bootstrap 和 Flask : How to receive a POST?

javascript - Bootstrap 下拉菜单嵌套在表单 : tabindex breaks on enter 中

css - 有没有比在 SublimeText2 中编辑 HTML/CSS 然后在浏览器中 F5/刷新以查看更改更好的工作流程?

javascript - PHP 链接生成器避免使用 JavaScript 并隐藏旧 URL

javascript - 单击时下拉切换无法正常工作

javascript - 延迟悬停在子菜单上