table表格嵌套效果

人走茶凉 提交于 2019-11-30 21:02:12
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title></title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }
        table tr td{
            border:1px solid gray;
        }
    </style>
</head>
<body>
    <p>为了实现相关效果,可以将固定相关高度</p>
   <table style="text-align: center">
    <tr>
        <td>22222</td>
        <td>22222</td>
        <td style="width:200px;">22222</td>
        <td>22222</td>
        <td>22222</td>
    </tr>
    <tr>
        <td>11111</td>
        <td>11111</td>
        <td>11111</td>
        <td>11111</td>
        <td>11111</td>
    </tr>
    <tr>
        <td>11111</td>
        <td>11111</td>
        <td>11111</td>
        <td>11111</td>
        <td>11111</td>
    </tr>
    <tr>
        <td>11111</td>
        <td>11111</td>
        <td>11111</td>
        <td>11111</td>
        <td>11111</td>
    </tr>
    <tr>
        <td>222</td>
        <td>222</td>
        <td colspan="2">
            <span>
                <span  style="display: inline-block;width: 46px;border:1px solid green">55</span>
                <span>8</span>
                <br/>
            </span>
            <span>
                <span  style="display: inline-block;width: 46px;border:1px solid green">555</span>
                <span>8</span>
                <br/>
            </span>
        </td>
        <td>222</td>
    </tr>
   </table>
      
</body>
</html>
<script>
    
</script>

 

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!