<CAPTION> 的参数设定(常用): 例如:<caption align="TOP" valign="TOP"></caption> - align="TOP"
该表格标题列相对于表格的摆放贴 位置(水平),可选值为: left, center, right, top, middle, bottom,若 align="bottom" 的话标题列便会出现对表格的下方,不管你 的原始码中把 <caption> 放在 <table> 中的头部或尾部。 - valign="TOP"
该表格标题列相对于表格的摆放位置(上下),可选值为: top, bottom。和 align="TOP" 或 align="BOTTOM" 是一样的,虽然功能重复了,但如果你要标题列 置于下方及向右或向左贴 ,那末两个参数便可一 用了。当只 一个参数时, 请首选 align,因为 valign 是由 HTML 3.0 才开始的参数。
例子: 原始码<center> <table width="350" border="1" cellspacing="0" cellpadding="2" align="CENTER"> <caption>网页速成 八月份访客浏览器使用分析</caption> <tr align="CENTER"> <th>Month</th> <th>% of IE visitor</th> <th>% of NC visitor</th> </tr> <tr align="CENTER"> <td>August</td> <td>61%</td> <td>39%</td> </tr> </table> </center> 显示结果上一页 [1] [2] [3] [4] [5] [6] [7] [8] [9] 下一页
|