【发布时间】:2017-07-12 01:56:02
【问题描述】:
我正在尝试在 html 中创建一个多行一列的表格。除一列外,所有行都有一列。我知道这可以用 colspan 完成。但我不想为每一行写 colspan 只是为了一个。有没有简单的方法可以做到这一点?
例子:
<table>
<tr>
<td>Some text</td>
</tr>
<tr>
<td>Some text</td>
</tr>
<tr>
<td>Some text</td>
</tr>
<tr>
<td>Some text</td>
<td>Some text</td>
</tr>
</table>
结构:
[ Some Text ]
[ Some Text ]
[ Some Text ]
[Some Text][Some Text]
[ Some Text ]
[ Some Text ]
【问题讨论】:
-
我认为没有
colspan你就无法做到这一点
标签: html html-table row col