100——第33例

<!DOCTYPE html>
<html lang="en">
<head>
    <meta  charset="UTF-8">
    <title>title</title>
</head>
<body>
    <h3>横跨两列的单元格</h3>
    <table border="6">
        <thead>
                <th>姓名</th>
                <th colspan="2">电话</th>
        </thead>
        <tbody>
            <tr>
                <td>小黑</td>
                <td>11122333</td>
                <td>11122444</td>
            </tr>
        </tbody>
    </table>
    <h3>横跨两行的单元格</h3>
    <table border="1">
        <tr>
            <th>姓名</th>
            <td align="center">小黑</td>
        </tr>
        <tr>
            <th rowspan="2">电话</th>
            <td>11122333</td>
        </tr>
        <tr>
            <td>11122444</td>
        </tr>
    </table>
    <p>align(排列整齐,校准),colspan跨列,rowspan跨行</p>
    
</body>
</html>

 

posted @ 2019-04-29 16:12  srcrs  阅读(72)  评论(0编辑  收藏  举报