这是一项我需要帮助的作业。我讨厌原样的表格,但这就是它所说的:
"The first row in each table consists of one table cell which spans two columns that contain the real estate listing name. The second row in each table consists of two table cells."
我的代码:
<table>
<tr>
<th>
<h3>TEST</h3>
</th>
</tr>
<th rowspan="2"></th>
<td>Something here !</td>
</tr>
</table>
只是想验证我这样做是否正确?这是完整的代码:
此外,它应该看起来像这样:http://screencloud.net/v/aA5Y
最佳答案
你想要跨越列,而不是行(colspan
vs rowspan
)。我想这就是你要找的。
<table>
<tr>
<th colspan="2">
Title
</th>
</tr>
<tr>
<td>First cell</td>
</tr>
<tr>
<td>Second cell</td>
</tr>
</table>
关于html - 表行跨度单元格跨度,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15824455/