表格的标题
表格标题的位置,可由ALIGN属性来设置,其位置分别由表格上方和表格下方。下面为表格标题位置的设置格式。
设置标题位于表格上方:
<caption align=top> ... </caption>
设置标题位于表格下方:
<caption align=bottom> ... </caption>
<table border>
<caption align=top>旅游日程</caption>
<tr>
<th>日期</th><td>9-11</td><td>11-13</td><td>13-14</td>
<tr>
<th>旅游地点</th><td>青岛</td><td>黄山</td><td>杭州</td>
</table>显示结果:
| 日期 | 9-11 | 11-13 | 13-14 |
|---|---|---|---|
| 旅游地点 | 青岛 | 黄山 | 杭州 |
<table border>
<caption align=bottom>旅游日程</caption>
<tr>
<th>日期</th><td>9-11</td><td>11-13</td><td>13-14</td>
<tr>
<th>旅游地点</th><td>青岛</td><td>黄山</td><td>杭州</td>
</table>
| 日期 | 9-11 | 11-13 | 13-14 |
|---|---|---|---|
| 旅游地点 | 青岛 | 黄山 | 杭州 |
上一页 [1] [2] [3] [4] [5] [6] 下一页