最近经常在网上看见别人的网页里面写了这样的东东,请问是什么意思阿?
(应该不是css里面自己定义的,因为我找了每看见)
---------------------------------------------------------------
Designates rows as the body of the table.
Show HTML Syntax
1<tbody align="CENTER" bgcolor="color" bottom="" center="" class="classname" event="script" id="value" jscript="" lang="language" language="JAVASCRIPT" left="" right="" style="css1-properties" title="text" top="" valign="BASELINE" vbs="" vbscript="" ¦="">
2
3Remarks
4
5Valid tags within the TBODY element include:
6
7TD
8TH
9TR
10This element is exposed for all tables, even if the table does not explicitly define a TBODY element.
11
12The TBODY element is a block element and requires a closing tag.
13
14This element is available in HTML as of Microsoft® Internet Explorer 3.0, and in script as of Internet Explorer 4.0.
15
16
17\---------------------------------------------------------------
18
19把表主体分成不同的部分。
20\---------------------------------------------------------------
21
22呵呵,那么多洋文。
23
24表格的dom结构象这样的:
25<table>
26<thead>
27<tr>
28<td>表头</td>
29</tr>
30</thead>
31<tbody>
32<tr>
33<td>表体</td>
34</tr>
35</tbody>
36<tfoot>
37<tr>
38<td>表脚</td>
39</tr>
40</tfoot>
41</table>
42
43如果只有一个tbody的时候经常不写tbody,但是其实这个对象还是存在的,alert一下table的innerHTML就可以看见了。
44
45\---------------------------------------------------------------
46
47<tbody>的好处就是可以先显示<tbody></tbody>之间的内容,
48而不必等整个表格都下载完成后再显示,
49这对于那些喜欢用表格来排版式网页的人来说尤其重要,
50不然的话, 用户半天没看到反应就会以为该网页出错了.
51\---------------------------------------------------------------
52
53<thead><tbody><tfoot>无论前后顺序如何改变,<thead>内的元素总是在表的最上面,<tfoot>总在表的最下面,所以
54
55<table>
56<tfoot>
57<tr>
58<td>表脚</td>
59</tr>
60</tfoot>
61<thead>
62<tr>
63<td>表头</td>
64</tr>
65</thead>
66<tbody>
67<tr>
68<td>表体</td>
69</tr>
70</tbody>
71</table>
72
73与上面的sorce运行结果是一样的。
74\---------------------------------------------------------------
75
76它是表格的正文部分,就像HTML的<body>一样.</body></tfoot></thead></tfoot></tbody></thead></tbody></tbody>