table表格
table 表格标签 caption 表格标题 thead 表头的行标签 th 表头行的单元格
cellspacing 单元格与单元格之间的间距 cellpadding 单元格与内容之间的间距 rules=“cols” 只显示竖线 rules=“rows” 只显示横线 rules=“all” 显示所有线
对齐方式 align
backgroung 只能写在td 中 不能写在tr 中
<table border="1" cellspacing="0px" cellpadding="0px" width="300px" height="300px" rules="all" align="center" bgcolor="skyblue" background="img/7.gif">
<!--bgcolor 背景颜色-->
<caption>三国演义</caption>
<thead>
<th>姓名</th>
<th>年龄</th>
<th>国籍</th>
</head>
<tbody><!--tr 行/单元格 valign 垂直方式居中 top 头部 bottom 底部 center 中间-->
<tr align="center" valign="top">
<td background="img/4.gif">孙权</td>
<td>11</td>
<td>焕焕</td>
</tr>
<tr align="right" valign="bottom">
<td height="100px" width="100px"><img src="img/4.gif" height="100px" width="100px"></td>
<td>22</td>
<td>都很好</td>
</tr>
<tr align="left" valign="center">
<td>分段</td>
<td>44</td>
<td>佛挡杀佛</td>
</tr>
</tbody>
</table>