1

私はこのようなHTMLテーブルを持っています:

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

しかし、私は2番目の行がこのように1つの列になることを望んでいません:

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

列にrowspanを使用すると、上記の列が拡大し続けます。

4

1 に答える 1

3

最初に colspan="2" を指定し、その後は no を指定します。

以下のようなもの

<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 に答える