【问题标题】:Using Bootstrap Labels in Bootstrap tables在引导表中使用引导标签
【发布时间】:2016-06-24 06:52:33
【问题描述】:

我正在尝试将引导标签添加到我在 bootstrap-table 中拥有的 <th> 字段中,以便我可以将字段的结果显示在标签中。解决这个问题的最佳方法是什么?将<span> 放在<th> 中不会产生预期的结果。我只是希望结果是标签 - 这可能吗?

    <table id="medicationtable">
    <thead>
    <tr>
        <th data-field="Medication_Name">Medication Name</th>
        <th data-field="Read_Code">Read Code</th>
        <th data-field="Dose">Dose</th>
        <th data-field="Date_Started">Date Started</th>
        <th data-field="Date_Ended">Date Ended</th>
    </tr>
    </thead>
</table>

【问题讨论】:

    标签: label bootstrap-table


    【解决方案1】:

    如果您从远程数据生成表,我认为这是不可能的。如果要在生成的单元格中添加其他 html,则需要将 bootstrap-table 应用于 html 中已经存在的表。

    http://issues.wenzhixin.net.cn/bootstrap-table/#options/from-html.html

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2023-03-27
      • 1970-01-01
      • 1970-01-01
      • 2019-11-08
      • 2015-11-10
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多