【发布时间】:2015-06-24 10:19:00
【问题描述】:
所以这是桌子。当我给height:500px 时,它会修改每一行的高度,而不是表格的高度,如果我将overflow-y:scroll 添加到table,tbody 它不起作用。行数取决于 frame_list 中存在多少帧。
如何为该表添加滚动条?
<table id="telemetry_table1">
<thead>
<tr>
<th>Frame identifier</th>
<th>Frame Arriving Date</th>
<th>Frame Arriving Time</th>
</tr>
</thead>
<tbody>
{% for frame in frame_list %}
<tr>
<td>{{frame.frame_identifier_type}}</td>
<td>{{frame.frame_arriving_time}}</td>
<td>{{frame.frame_arriving_date}}</td>
</tr>
{% endfor %}
</tbody>
</table>
【问题讨论】:
-
究竟需要什么?你也可以试试这个吗?
-
但是 django 是服务器端的,我怎么能把它添加到小提琴中呢?是的,赞成:P
-
实际上我对 abt django 了解不多 .. 但我的理解是动态添加内容,你想要滚动到那个 .. 对吗?如果我错了,请纠正我。
标签: css django html html-table