HTML表格嵌套和属性

二、表格嵌套

嵌套表格说明:

1.要有完整的表格结构
2.放入td标签中

<table>
    <tr>
        <td>...</td>
        <td>
            <table>
                <tr>
                    <td>...</td>
                    <td>...</td>
                </tr>
            </table>
        </td>
    </tr>
</table>

表格属性

在这里插入图片描述

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>表格布局</title>
</head>
<body>
    <table width="100%" bgcolor="#f2f2f2">
        <tr height="80px" bgcolor="#14191e">
            <td>
                <span style="font-size: 28px; color:white">慕课网</span>&nbsp;&nbsp;&nbsp;&nbsp;
                <span style="font-size: 14px; color:white">课程</span>&nbsp;&nbsp;&nbsp;&nbsp;
                <span style="font-size: 14px; color:white">计划</span>&nbsp;&nbsp;&nbsp;&nbsp;
                <span style="font-size: 14px; color:white">疑问</span>&nbsp;&nbsp;&nbsp;&nbsp;
                <span style="font-size: 14px; color:white">文章</span>&nbsp;&nbsp;&nbsp;&nbsp;   
            </td>
        </tr><!--页头-->
        <tr height="10px"><td></td></tr><!--上空行-->
        <tr><td>
            <table align="center" width="1024px" >
                <tr>
                    <td width="240px"  valign="top">
                        <table width="100%" bgcolor="#ffffff">
                            <tr><td align="center" height="60px">关于我们</td></tr>
                            <tr><td align="center" height="60px">团队介绍</td></tr>
                            <tr><td align="center" height="60px">人才招募</td></tr>
                            <tr><td align="center" height="60px">讲师招募</td></tr>
                            <tr><td align="center" height="60px">联系我们</td></tr>
                            <tr><td align="center" height="60px">常见问题</td></tr>
                            <tr><td align="center" height="60px">意见反馈</td></tr>
                            <tr><td align="center" height="60px">友情链接</td></tr>

                        </table>

                    </td><!--左内容-->
                    <td width="20px"></td><!--空隙-->
                    <td width="764px" bgcolor="#ffffff" align="left">
                        <pre><h3>

360导航             PHP站中文网             hao123                拉勾网


web开发者           学习找工作网            腾讯云                铁粉社区


php学习网           搜孤教育                JS代码网              Boss直聘网  


高博开发者论坛       微学                   社讯网                挖工作


微企业              SDKcn开发平台    


</h3></pre>

                    </td><!--右内容-->
                </tr>
            </table>
        </td></tr>
        <tr height="10px"><td></td></tr><!--下空行-->
        <tr height="150px" bgcolor="#14191e">
            <td align="center">
                <span style="font-size: 14px; color:white">网站首页</span>&nbsp;&nbsp;&nbsp;&nbsp;
                <span style="font-size: 14px; color:white">人才招聘</span>&nbsp;&nbsp;&nbsp;&nbsp;
                <span style="font-size: 14px; color:white">联系我们</span>&nbsp;&nbsp;&nbsp;&nbsp;
                <span style="font-size: 14px; color:white">慕课云</span>&nbsp;&nbsp;&nbsp;&nbsp;
                <span style="font-size: 14px; color:white">合作专区</span>&nbsp;&nbsp;&nbsp;&nbsp; 
                <span style="font-size: 14px; color:white">关于我们</span>&nbsp;&nbsp;&nbsp;&nbsp;
                <span style="font-size: 14px; color:white">讲师招募</span>&nbsp;&nbsp;&nbsp;&nbsp;
                <span style="font-size: 14px; color:white">意见反馈</span>&nbsp;&nbsp;&nbsp;&nbsp;  
                <span style="font-size: 14px; color:white">友情链接</span>&nbsp;&nbsp;&nbsp;&nbsp;
                <br/>
                <span style="font-size: 10px; color:white">Copyright 2016 imooc.com All Right Reserved</span>
            </td>
   
        </tr><!--页尾-->
    </table>    
</body>
</html>

在这里插入图片描述

学习笔记仅供参考

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值