html rowspan colspanコード例

10166 ワード

<html>

    <body>

        <table border="1">

            <tr>

                <td rowspan="4">AAA</td><td>111</td><td>222</td><td>333</td> <!--  4 td -->

            </tr>

            <tr>

                <td>444</td><td>555</td><td>666</td>  <!--  td -->

            </tr>

            <tr>

                <td>777</td><td>888</td><td>999</td>  <!--  td -->

            </tr>

            <tr>

                <td>000</td><td>aaa</td><td>bbb</td>  <!--  td -->

            </tr>

        </table>

        

        <table border="1">

            <tr>

                <td colspan="4">AAA</td> <!--  4 td -->

            </tr>

            <tr>

                <td>444</td><td>444</td><td>555</td><td>666</td>  

            </tr>

            <tr>

                <td>444</td><td>777</td><td>888</td><td>999</td>  

            </tr>

            <tr>

                <td>444</td><td>000</td><td>aaa</td><td>bbb</td>  

            </tr>

        </table>

    </body>

</html>