1

我有这样的 HTML 表格:

-------------------------------------------------
|Column 1                   |Column 2           |
-------------------------------------------------
|this is the text in column |this is the column |
|one which wraps            |two test           |
-------------------------------------------------

但我不希望第二行只是这样的一列:

-------------------------------------------------
|Column 1                   |Column 2           |
-------------------------------------------------
|this is the text in column |this is the column |
|one which wraps two test                       |
-------------------------------------------------

当我在一列上使用行跨度时,上面的列不断扩展。

4

1 回答 1

3

第一个给 colspan="2" ,之后不给 s。

像下面这样的东西

<table>
    <tr>
        <td>
            this is the text in column
        </td>
        <td>
            this is the column
        </td>
    </tr>
    <tr>
        <td colspan="2">
            one which wraps two test
        </td>
    </tr>
</table>
于 2012-10-06T03:13:32.613 回答