【发布时间】:2020-07-26 12:11:32
【问题描述】:
我正在处理一个django-bootstrap 项目,但我在引导程序的表格分页方面遇到了一些问题,它不会出现在我的模板上。
我正在使用具有我自己风格的默认引导表之一,我想请你们帮助我的表提供所需的分页。
<table id="table1" class="table table-bordered table-striped" style="width:1200px; margin-left:-45px">
<thead>
<tr>
<th class="header1"> </th>
<th class="header1">ID Riesgo</th>
<th class="header1">Código Riesgo</th>
<th class="header1">Característica</th>
<th class="header1">Evento</th>
</tr>
</thead>
<tbody>
{% for riesgos in riesgos %}
<tr style="height: -2px;">
<td style="text-align:center;">
<div class name="checkboxWrapper">
<input type="checkbox" id="check" hidden="true" style="margin-top: 10px;" />
<label for="check" class="checkmark"></label>
</div>
</td>
<td style="color:#A9A9A9 ;">{{riesgos.id_ri}}</td>
<td style="color:#A9A9A9;">{{riesgos.cod_ri}}</td>
<td style="color:#A9A9A9;">{{riesgos.caracterisitica}}</td>
<td style="color:#A9A9A9;">{{riesgos.evento}}</td>
{% endfor %}
</tr>
</tbody>
</table>
【问题讨论】:
标签: javascript html css django bootstrap-4