Chinaunix首页 | 论坛 | 博客
  • 博客访问: 961857
  • 博文数量: 210
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 2070
  • 用 户 组: 普通用户
  • 注册时间: 2014-11-19 21:54
文章分类

全部博文(210)

文章存档

2020年(2)

2019年(18)

2018年(27)

2017年(5)

2016年(53)

2015年(88)

2014年(17)

分类: 其他平台

2015-09-19 20:11:02

表格的代码:

                    <!DOCTYPE html>
                     <html>
                            <head>
                                    <title>成绩单<title>
                            </head>
                            <body>
                                            <table>
                                                    <table border="1" width="500" cellspacing="10" style="border-color:Green;border-collapse:collapse;">
                                                        <tr>
                                                                <th>班主任的</th>
                                                                <th>姓名</th>
                                                                <th>数学</th>
                                                                <th>语文</th>
                                                                <th>社会</th>
                                                                <th>自然</th>
                                                                <th>历史</th>
                                                                <th>化学</th>
                                                    </tr>
                                                    <tr>
                                                            <td rowspan="5">罗贯中</td>
                                                            <td>马德超</td>
                                                            <td>11</td>
                                                            <td>22</td>
                                                            <td>33</td>
                                                            <td>44</td>
                                                            <td>55</td>
                                                            <td>66</td>
                                                   </tr>
                                                    <tr>
                                                                     <td>11</td>
                                                                     <td>22</td>
                                                                     <td>33</td>
                                                                     <td>44</td>
                                                                    <td>55</td>
                                                                    <td>66</td>
                                                             </tr>
                                                             <tr>
                                                                    <td>李世民</td>
                                                                    <td>11</td>
                                                                    <td>22</td>
                                                                    <td>33</td>
                                                                    <td>44</td>
                                                                    <td>55</td>
                                                                    <td>66</td>
                                                           </tr>
                                                           <tr>
                                                                    <td>秦始皇</td>
                                                                    <td>11</td>
                                                                    <td>22</td>
                                                                    <td>33</td>
                                                                    <td>44</td>
                                                                    <td>55</td>
                                                                    <td>66</td>
                                                     </tr>
                                                     <tr>
                                                                    <td>美丽乡</td>
                                                                    <td>11</td>
                                                                    <td>22</td>
                                                                    <td>33</td>
                                                                     td>55</td>
                                                                    <td>66</td>
                                                          </tr>
                                                          <tr>
                                                                    <td colspan="8">
                                                                                     总人数:8,平均分数:20 ,评价太差!
                                                                    </td>
                                                         </tr>

                                            </table>
                            </body>
                    </html> 
 border="1"                                表示边框的粗细值 
 width="500"                              表格的宽度
cellspacing="10"                          单元格之间的距离
 style="border-color:Green;border-collapse:collapse;  单元格的线段颜色  单元格之间的线段的宽度
阅读(1178) | 评论(0) | 转发(0) |
0

上一篇:静态网页的复习

下一篇:LCD1602显示器

给主人留下些什么吧!~~