定義指明哪些行作為表格的主體。 Designates rows as the body of the table. 注釋TBODY 元素內(nèi)包含的有效標(biāo)簽有:
所有表格都有 TBODY 元素,就算表格沒有顯式定義 TBODY 元素。 table 對象及其相關(guān)的元素有各自獨立的表格對象模型,這與常規(guī)對象模型所采用的方法有很大不同。要獲得關(guān)于表格對象模型更多的信息,請參看如何動態(tài)生成表格。 此元素在 Internet Explorer 3.0 及以上版本的 HTML 中可用,在 Internet Explorer 4.0 及以上版本的腳本中可用。 此元素不改變顯示。 此元素需要關(guān)閉標(biāo)簽。 Valid tags within the TBODY element include:
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> |
|