tbody,body
网页中的Tbody是作什么用的?
TBODY作用是:可以控制表格分行下载,从而提高下载速度。(网页的打开是先表格的的内容全部下载完毕后,才显示出来,分行下载可以先显示部分内容,这样会减少用户等待时间。 使用TBODY的目的是可以使得这些包含在内的代码不用在整个表格都解析后一起显示,就是说如果有多个行,那么如果得到一个TBODY行,就可以先显示一行。 BODY是HTML的文本体,一个HTML文件,只有一个BODY,而在TABLE中可以有多个TBODY。
TBODY这个标签可以控制表格分行下载,当表格内容很大时比较实用,在需要分行下载处加上和,比如: 以下为引用的内容:head1head2首先显示首先显示再显示再显示foot1foot2 注意: 1.TBODY元素在浏览器中不会被渲染表示 2.当不同行间的单元间合并时各单元格所在的行不要加TBODY标签 提示:TBODY元素内包含的有效标签有:TD、TH、TR 特别提示 本例代码的运行将看不到效果,因为表格中的内容比较少,只有在数据量大而且表格嵌套较多时才看得到效果。
tbody是什么意思
tbody是一个HTML语言标签表格主体,该标签用于组合 HTML 表格的主体内容。
HTML tbody 标签
tbody 元素应该与 thead 和 tfoot 元素结合起来使用。
thead 元素用于对 HTML 表格中的表头内容进行分组,而 tfoot 元素用于对 HTML 表格中的表注(页脚)内容进行分组。
注释:如果您使用 thead、tfoot 以及 tbody 元素,您就必须使用全部的元素。它们的出现次序是:thead、tfoot、tbody,这样浏览器就可以在收到所有数据前呈现页脚了。您必须在 table 元素内部使用这些标签。
提示:在默认情况下这些元素不会影响到表格的布局。不过,您可以使用 CSS 使这些元素改变表格的外观。

请教是什么意思.起到什么作用
TBODY包含行的内容下载完优先显示,不必等待表格结束.另外,还需要注意一个地方。表格行本来是从上向下显示的。但是,应用了thead/tbody/tfoot以后,就“从头到脚”显示,不管你的行代码顺序如何。也就是说如果thead写在了tbody的后面,html显示时,还是以先thead后tbody显示。
TABLE
THEAD
TR
TD This text is in the THEAD. /TD
/TR
/THEAD
TBODY
TR
TD
This text is in the TBODY.
/TD
/TR
/TBODY
TFOOT
TR
TD This text is in the table footer.
/TD
/TR
/TFOOT
/TABLE
请问……标记表示什么,怎么用啊?
定义与用法
Defines a table body.
定义表格的主体
The thead, tfoot and tbody elements enable you to group rows in a table. When you create a table, you might want to have a header row, some rows with data, and a row with totals at bottom. This division enables browsers to support scrolling of table bodies independently of the table header and footer. When long tables are printed, the table header and footer information may be repeated on each page that contains table data.
在table中thead,tfoot以及tbody可以让你聚集表格中的多个行。当你建立一个表格的时候你或许希望有一个标题行,一些行来放置数据,最下的一行来放总计。这样的划分在浏览器中可以使用滚轮从头到尾直接浏览,当打印的时候每有超出部分那么页眉和脚标会重新加到表格上(保证打印出来的每页都有页眉和脚标)
在HTML和XHTML中的区别
NONE
无
提示与注意点
Note: The tbody must have a tr tag inside!
注意:tbody必须得有tr标签在里面!
Note: If you use the thead, tfoot and tbody elements, you must use every element. They should appear in this order: thead, tfoot and tbody, so that browsers can render the foot before receiving all the data. You must use these tags within the table element.
注意:当你使用了thead, tfoot 和 tbody元素,那么你就必须使用它们每一个元素,它们出现的次序也应该是这样:thead, tfoot 和 tbody,只有这样浏览器才能在接收所有数据前先得到脚标的信息。还有一点你必须在table元素内使用它们
Note: The thead,tbody and tfoot elements are seldom used, because of bad browser support. Expect this to change in future versions of XHTML. If you have Internet Explorer 5.0 or newer, you can view an example in our XML tutorial.
注意:thead,tbody 和 tfoot并不常用,因为它们的浏览器支持性不好。不过预计会在XHTML中得到改善。如果你有IE以上版本的浏览器,那么你可以看看我们XML教程中的一个举例
实例
代码 输出结果
table border = "1"
thead
tr
tdThis text is in the THEAD/td
/tr
/thead
tfoot
tr
tdThis text is in the TFOOT/td
/tr
/tfoot
tbody
tr
td This text is in the TBODY/td
/tr
/tbody
/table This text is in the THEAD
This text is in the TFOOT
This text is in the TBODY
可选属性
DTD indicates in which DTD the attribute is allowed. S=Strict, T=Transitional, and F=Frameset.
下表中的DTD列指明了被支持的DTD属性。S=Strict(精确的),T=Transitional(传统的),F=Frameset(框架)
属性 值 描述 DTD
align right
left
center
justify
char Defines the text alignment in cells
定义单元格内的文字对齐 STF
char character Specifies which character to align text on.
指定向哪个字符看齐
Note: Only used if align="char"!
注意:只能当align="char"的时候才能使用
STF
charoff pixels
% Specifies the alignment offset to the first character to align on.
取消向第一个字符对齐
Note: Only used if align="char"!
注意:只能当align="char"的时候才能使用
STF
valign top
middle
bottom
baseline Specifies the vertical text alignment in cells
指定文字在单元内的垂直对齐 STF
标准属性
id, class, title, style, dir, lang, xml:lang
For a full description, go to Standard Attributes.
查看完整的属性
事件属性
onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup
For a full description, go to Event Attributes.
jquery 为什么要用tbody
tbody是table的内置属性,这是基本的html,还有thead,tfoot,分别是表头,表尾。
可以换成table,但是要写成$('table
tr:has(:checked)'),就是“”要去掉,这个是表示下一级的,你换成table了,tr是在tbody下的,所以table的下一级当然找不到tr了,而是tbody。
或者$(".table").find("tr:has(:checked)")也可以的。