html5 表格

<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <title> 我的页面 </title>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <h6>注释快捷键ctrl+/     &nbsp表示空格符     &lt表示小于号       &gt表示大于号</h6>
    <h6>align   规定表格相对周围元素的对齐方式  left center right</h6>
    <h6>border  规定表格单元是否拥有边框,默认为"",表示没有边框    1或者""</h6>
    <h6>cellpadding 规定单元边沿与其内容之间的空白,默认1像素</h6>
    <h6>cellspacing 规定单元格之间的空白,默认2像素</h6>
    <h6>width 规定表格的宽度</h6>
    <h6>thead标签表格的头部区域 tbody标签表格的主体区域</h6>
    <h6>跨行合并rowspan="合并单元格的个数</h6>
    <h6>跨行:最上侧单元格为目标单元格,写合并代码</h6>
    <h6>跨列合并colspan="合并单元格的个数</h6>
    <h6>跨列:最左侧单元格为目标单元格,写合并代码</h6>
    <h6>合并完之后记得删除多余的单元格</h6>
   <table align="center" border="1" cellpadding="10" cellspacing="0" width="200" height="200">
    <thead>
       <tr> <th>姓名</th> <th>性别</th> <th>年龄</th>   </tr>
    </thead>
    <tbody>
       <tr> <td>张三</td> <td>男</td>   <td rowspan="3">18</td>     </tr>
       <tr> <td>李四</td> <td>男</td>        </tr>
       <tr> <td>王五</td> <td>男</td>        </tr>
    </tbody>
    </table>
</body>
</html>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值