在 Bootstrap 个表格中使用 Bootstrap 个标签

Using Bootstrap Labels in Bootstrap tables

我正在尝试将 bootstrap 标签添加到 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>

我认为如果您从远程数据生成 table 是不可能的。如果您想在生成的单元格中添加额外的 html,您需要将 bootstrap-table 应用到 html 中已经存在的 table。

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