【发布时间】:2020-03-21 14:53:51
【问题描述】:
我有一个如下所示的引导表。
<div class="row">
<table id="question-selection" class="table table-sm table-hover table-wrapper">
<tbody>
{% for placer in chapter_questions %}
{% if placer == question %}
<tr id="active-table" style="transform: rotate(0);">
{% else %}
<tr style="transform: rotate(0);">
{% endif %}
<th scope="row">
<a href="{% url 'question' placer.slug %}" class="stretched-link"></a></th>
<td class="pr-3 pl-3 pt-2 pb-2">{{ placer|truncatewords:10 }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
我希望表格中的活动行位于框架中,因为我看不到当前单击的内容。另外,当我重新加载页面时,我希望它保持滚动位置。
【问题讨论】:
标签: html ajax bootstrap-4 bootstrap-table