AutoCAD 3DMAX C语言 Pro/E UG JAVA编程 PHP编程 Maya动画 Matlab应用 Android
Photoshop Word Excel flash VB编程 VC编程 Coreldraw SolidWorks A Designer Unity3D
 首页 > 网页制作

HTML教程 第四章 table表格

51自学网 http://www.51zixue.net

表格的标题

  表格标题的位置,可由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-1111-1313-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-1111-1313-14
旅游地点青岛黄山杭州


旅游日程


 
 

上一篇:HTML教程&nbsp;第二章 页面布局与文字设计  下一篇:HTML教程&nbsp;第六章 多媒体效果