垂直合并单元格 rowspan

前端笔记本
568 0

截图

85a6849644f84db2f78f12b15d25e7ee.png

知识点:

rowspan

用法

<td rowspan="3">11</td>

代码

<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title></title>
    </head>
    <body>
        <table border="1px" align="center" cellspacing="0" width="50%">
            <tr>
                <td colspan="5" align="center">1</td>
                <!-- <td>1</td>
                <td>1</td>
                <td>1</td>
                <td>1</td> -->
            </tr>
            
            <tr>
                <td rowspan="3">11</td>
                <td>1</td>
                <td>1</td>
                <td>1</td>
                <td rowspan="3">11</td>
            </tr>
            
            <tr>
                <!-- <td>22</td> -->
                <td>1</td>
                <td>1</td>
                <td>1</td>
                <!-- <td>22</td> -->
            </tr>
            
            <tr>
                <!-- <td>33</td> -->
                <td>1</td>
                <td>1</td>
                <td>1</td>
                <!-- <td>33</td> -->
            </tr>
            
            <tr>
                <td>44</td>
                <td>1</td>
                <td>1</td>
                <td>1</td>
                <td>44</td>
            </tr>
            
        </table>
    </body>
</html>
最后更新 2019-11-02
评论 ( 0 )
评论已关闭