gpt4 book ai didi

html - 为表格的所有行设置固定高度

转载 作者:太空宇宙 更新时间:2023-11-03 21:50:26 25 4
gpt4 key购买 nike

我创建了一个表 http://jsfiddle.net/vR5B8/ .

table  id="resultDetails" class="table-striped" border=1 width="99%" nowrap=0;  cellspacing=0; cellpadding=3><tbody>
<th colspan="2"><Big>Result Details</Big></th>
<tr data-depth=0 class="collapse" height=1px >
<td width="4%">P</td>
<td width="80%">Modules
<div class="content">
<p>Abc</p>
</div>
</td>
</tr>
<tr data-depth=0 class="collapse" height=1px >
<td width="4%">P</td>
<td width="80%">Modules 1</td>
</tr>
<tr data-depth=0 class="collapse" height=1px >
<td width="4%">P</td>
<td width="80%">Modules 2</td>
</tr>
</tbody>

一些行包含隐藏的附加信息。如果该行包含隐藏信息,则与不包含隐藏信息的行相比,该行的高度增加。如何设置所有行的公共(public)高度。有什么想法吗?

最佳答案

使用 display: none 而不是可见性隐藏 demo

关于html - 为表格的所有行设置固定高度,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17697268/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com