html / table

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
    <title>网页标题</title>
    <meta name="keywords" content="关键字列表" />
    <meta name="description" content="网页描述" />
    <link rel="stylesheet" type="text/css" href="" />
    <style type="text/css"></style>
    <script type="text/javascript"></script>
</head>
<body>
     <table                    border="1" width="500" height="170" align="center" >   
            <caption>课程表</caption>
            <tr>
                <th>项目</th>
                <th colspan="5"> 上课</th>
                <th colspan="2">休息</th>
                
            </tr>
            <tr>
                <th>星期</th>
                <th>1</th>
                <th>2</th>
                <th>3</th>
                <th>4</th>
                <th>5</th>
                <th>6</th>
                <th>日</th>
            </tr>
            <tr>
                <th rowspan="4">上</th>
                <th>语文</th>
                <th>数学</th>
                <th>英语</th>
                <th>英语</th>
                <th>物理</th>
                 <th>计算</th>
                <th rowspan="4">休息</th>
            </tr>
            <tr>
                
                <th>数</th>
                <th>数</th>
                <th>地</th>
                <th>历</th>
                <th>化</th>
                <th>计算</th>
                
            </tr>
            <tr>
                
                <th>化</th>
                <th>语</th>
                <th>体</th>
                <th>计</th>
                <th>英</th>
                <th>计</th>
                
            </tr>
            <tr>
                
                <th>政</th>
                <th>英</th>
                <th>体</th>
                <th>历</th>
                <th>历</th>
                <th>计</th>
                
            </tr>
            <tr>
                <th rowspan="2">下午</th>
                <th>语</th>
                <th>数</th>
                <th>英</th>
                <th>英</th>
                <th>物</th>
                <th>计</th>
                <th rowspan="2">休息</th>
            </tr>
            <tr>
                
                <th>数</th>
                <th>数</th>
                <th>地</th>
                <th>历</th>
                <th>化</th>
                <th>计</th>
                
            </tr>
            
            
            
            
            
            
            
            
            
            
            
            
     </table>

</body>
</html>
cellspacing="0" cellpadding="0" 

多打代码 多查手册 !!!!!!!!

posted @ 2016-11-23 17:03  谁把我名字给抢了  阅读(153)  评论(1)    收藏  举报