打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
tbody - HTML元素
userphoto

2006.11.16

关注

定义

指明哪些行作为表格的主体。

Designates rows as the body of the table.

注释

TBODY 元素内包含的有效标签有:

  • TD
  • TH
  • TR

所有表格都有 TBODY 元素,就算表格没有显式定义 TBODY 元素。

table 对象及其相关的元素有各自独立的表格对象模型,这与常规对象模型所采用的方法有很大不同。要获得关于表格对象模型更多的信息,请参看如何动态生成表格。

此元素在 Internet Explorer 3.0 及以上版本的 HTML 中可用,在 Internet Explorer 4.0 及以上版本的脚本中可用。

此元素不改变显示。

此元素需要关闭标签。

Valid tags within the TBODY element include:

  • TD
  • TH
  • TR

The TBODY element is exposed for all tables, even if the table does not explicitly define a TBODY element.

The table object and its associated elements have a separate table object model, which utilizes different methods than the general object model. For more information on the table object model, see How to Build Tables Dynamically.

This element is available in HTML as of Internet Explorer 3.0, and in script as of Internet Explorer 4.0.

This element is not rendered.

This element requires a closing tag.

示例代码

<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>
</TABLE>
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
Selenium之表格的定位
tbody
HTML操作XML数据岛,数据绑定
重新发现HTML表格 | CSS | 前端观察
HTML table、form表单标签的介绍
HTML表标题标签的定义与用法
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服