Chinaunix首页 | 论坛 | 博客

分类: Windows平台

2015-09-19 20:26:47


点击(此处)折叠或打开

  1. <!--下面是一个简单的表格 -->
  2. <!DOCTYPE html>

  3. <html>

  4. <head>

  5.     <meta charset="UTF-8"/>
  6.     <title>这是9年一班的成绩单</title>

  7. </head>

  8. <body>

  9.     <table border="1" width="500" cellspacing="0" style="border-color:red;border-collapse:collapse;">
  10.     
  11.     <!-- cellspcing是控制单元格之间的控制  style="border-color:red;是控制表格线的颜色 border-collapse:collapse控制表格线的粗细 -->
  12.         <tr>
  13.                 <th>授课老师</th>
  14.                 <th>姓名</th>
  15.                 
  16.                 <th>语文</th>
  17.                 <th>数学</th>
  18.                 <th>物理</th>
  19.                 <th>化学</th>
  20.                 <th>英语</th>
  21.                 <th>口才</th>
  22.         </tr>

  23.         <tr>
  24.                 <td rowspan="8">西门吹雪</td>
  25.                 <td>小六子</td>
  26.                 
  27.                 <td>90</td>
  28.                 <td>65</td>
  29.                 <td>45</td>
  30.                 <td>66</td>
  31.                 <td>50</td>
  32.                 <td>43</td>

  33.         </tr>
  34.         <tr>
  35.                 <td>大傻子</td>
  36.                 <td>0</td>
  37.                 <td>0</td>
  38.                 <td>0</td>
  39.                 <td>0</td>
  40.                 <td>0</td>
  41.                 <td>99</td>

  42.         </tr>
  43.         <tr>
  44.                 <td>二愣子</td>
  45.                 <td>100</td>
  46.                 <td>100</td>
  47.                 <td>60</td>
  48.                 <td>0</td>
  49.                 <td>0</td>
  50.                 <td>4</td>

  51.         </tr>
  52.         <tr>
  53.                 <td>三拐子</td>
  54.                 <td>12</td>
  55.                 <td>324</td>
  56.                 <td>23</td>
  57.                 <td>6</td>
  58.                 <td>0</td>
  59.                 <td>0</td>

  60.         </tr>
  61.         <tr>

  62.             <td colspan="8">
  63.             总人数:4 总分数:1200 平均分:250
  64.             </td>
  65.         </tr>    





  66. </table>




  67. </body>

  68. </html>
  69. <!-- 图像如下: -->



阅读(2204) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~