---------------------------------------------------------------
Designates rows as the body of the table.
Show HTML Syntax
<TBODY
ALIGN=CENTER ¦ LEFT ¦ RIGHT
BGCOLOR=color
CLASS=classname
ID=value
LANG=language
LANGUAGE=javascript ¦ JSCRIPT ¦ VBSCRIPT ¦ VBS
STYLE=css1-properties
TITLE=text
VALIGN=BASELINE ¦ BOTTOM ¦ CENTER ¦ TOP
event = script
>
Remarks
Valid tags within the TBODY element include:
TD
TH
TR
This element is exposed for all tables, even if the table does not explicitly define a TBODY element.
The TBODY element is a block element and requires a closing tag.
This element is available in HTML as of Microsoft® Internet Explorer 3.0, and in script as of Internet Explorer 4.0.
---------------------------------------------------------------
把表主体分成不同的部分。
---------------------------------------------------------------
呵呵,那么多洋文。
表格的dom结构象这样的:
<table>
<thead>
<tr>
<td>表头</td>
</tr>
</thead>
<tbody>
<tr>
<td>表体</td>
</tr>
</tbody>
<tfoot>
<tr>
<td>表脚</td>
</tr>
</tfoot>
</table>
如果只有一个tbody的时候经常不写tbody,但是其实这个对象还是存在的,alert一下table的innerHTML就可以看见了。
---------------------------------------------------------------
<tbody>的好处就是可以先显示<tbody></tbody>之间的内容,
而不必等整个表格都下载完成后再显示,
这对于那些喜欢用表格来排版式网页的人来说尤其重要,
不然的话, 用户半天没看到反应就会以为该网页出错了.
---------------------------------------------------------------
<thead><tbody><tfoot>无论前后顺序如何改变,<thead>内的元素总是在表的最上面,<tfoot>总在表的最下面,所以
<table>
<tfoot>
<tr>
<td>表脚</td>
</tr>
</tfoot>
<thead>
<tr>
<td>表头</td>
</tr>
</thead>
<tbody>
<tr>
<td>表体</td>
</tr>
</tbody>
</table>
与上面的sorce运行结果是一样的。
---------------------------------------------------------------
它是表格的正文部分,就像HTML的<body>一样.