[英]HTML table on which one TH has 2 rows
What I intend is described in this picture made with my amazing paint skills: 这幅画以我惊人的绘画技巧描述了我的意图:
Hopefully it's understandable. 希望这是可以理解的。 Basically I don't a separation of 2 rows in Amount and Total but I want that with Person which will have a row beneath it with 2 columns.
基本上,我在Amount和Total中没有2行的分隔,但我希望Person在其下具有2列的一行。
Is this possible? 这可能吗?
EDIT: It's not the same as the possible duplicate. 编辑:这与可能的重复项不同。 The suggest duplicate has the second row span across all columns.
建议重复项的第二行跨所有列。 I only want it on the first column "Person".
我只希望它在第一列“人”中。
I think you don't make any effort to achieve it. 我认为您不会为此付出任何努力。 As simple as
colspan
and rowspan
. 就像
colspan
和rowspan
一样简单。 Try to read better next time, the example shared with you in comments is fine. 下次尝试阅读更好,在注释中与您分享的示例很好。
<table border="1"> <tr> <th colspan="2">person</th> <th rowspan="2">amount</th> <th rowspan="2">total</th> </tr> <tr> <td>name</td> <td>age</td> </tr> </table>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.