【发布时间】:2017-08-10 02:38:11
【问题描述】:
这是我的代码:
我需要在表格的正文中添加一个滚动条,表头必须保持不变。 如果我添加滚动条,身体细胞将无法正确修复。
我需要在表格的正文中添加一个滚动条,表头必须保持不变。 如果我添加滚动条,身体细胞将无法正确修复。
<table width="600" border="1" style="border-collapse:collapse; border: 1px solid #AEAEAE;" cellpadding="0" cellspacing="0">
<tr>
<th rowspan="2">
Title
</th>
<th rowspan="2">
Title
</th>
<th colspan="4">
Title
</th>
<th colspan="2">
Title
</th>
</tr>
<tr>
<th>
Title
</th>
<th>
Title
</th>
<th>
Title
</th>
<th>
Title
</th>
<th>
Title
</th>
<th>
Title
</th>
</tr>
<td height="400">
Body
</td>
<td>
Body
</td>
<td>
Body
</td>
<td>
Body
</td>
<td>
Body
</td>
<td>
Body
</td>
<td>
Body
</td>
<td>
Body
</td>
</tr>
【问题讨论】:
-
在发布时将 HTML 缩进四个空格,以便它显示为代码块。您可以选择您的代码并点击格式栏中的 { } 按钮来缩进它。
标签: html scroll html-table scrollbar