博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
03.html学习-表格
阅读量:4470 次
发布时间:2019-06-08

本文共 679 字,大约阅读时间需要 2 分钟。

表格使用到的标签:

<table> 表格
<tr> 行
<td> 单元格
<th> 表头 默认的样式是居中,加粗。
<caption> 表格的标题
表格常用的属性:
border 设置表格的边框
width : 设置表格的宽度
height: 设置表格的高度的。
colspan: 设置单元格占据指定的列数。
rowspan : 设置单元格占据指定的行数。

-->

<body>
<table align="center" border="1px" bordercolor="#0066CC" width="400px" height="300px">
<caption>期末考试成绩表</caption>
<thead>
   <tr>
       <th>姓名</th>   <!--th为表头内容-->
       <th>分数</th>
       <th>人品</th>
  </tr>
</thead>
<tbody>
   <tr>
        <td rowspan="2">凡江</td>
        <td>98</td>
        <td>优</td>
 </tr>
  <tr>
        <td>100</td>
        <td>优</td>
 </tr>
  <tr>
        <td>居东东</td>
        <td>99</td>
        <td>非常好</td>
</tr>
<tr align="center">
       <td>综合测评</td>
       <td colspan="2">非常好</td>
</tr>
</tbody>
</table>

</body>

 

转载于:https://www.cnblogs.com/transcendent/p/4940809.html

你可能感兴趣的文章
npm和Node.js简介
查看>>
Spring AOP无法拦截Controller的原因
查看>>
Windows双系统
查看>>
Microsoft Project项目管理工具
查看>>
软件设计师-算法
查看>>
小米手机安装Google框架
查看>>
honpeyhonepy
查看>>
netaddr网络地址工具python
查看>>
OSI7层模型和网络排错、网络安全
查看>>
hash文件-对文件进行数字签名
查看>>
TCP_Wrappers基础知识介绍
查看>>
Central Post Office (Shiraz University Local Contest 2011 ) 树状dp
查看>>
51Nod - 1031 骨牌覆盖
查看>>
回顾环信使用
查看>>
JavaScript--函数对象的属性caller与callee
查看>>
特殊字符大全
查看>>
SQL - SQL 连接 JOIN 例解。(左连接,右连接,全连接,内连接,交叉连接,自连接)[转]...
查看>>
《learning hard C#学习笔记》读书笔记(20)异步编程
查看>>
动态创建Struct实例
查看>>
Jsp通过JDBC连接到SQL Server2008数据库遇到的几个问题
查看>>