国际访客建议访问 Primers 编程伙伴 国际版站点 > HTML 教程 > td 以获得更好的体验。

# HTML 的 <td> 标签

The <td> HTML element defines a cell of a table that contains data and may be used as a child of the <tr> element.

请查看 HTML 元素帮助手册 了解更多 HTML 元素。

# 属性

请查看 HTML 元素的全局属性 了解 HTML 元素的全局属性。
  • colspan: Contains a non-negative integer value that indicates how many columns the data cell spans or extends. The default value is 1. User agents dismiss values higher than 1000 as incorrect, setting to the default value (1).

  • headers: Contains a list of space-separated strings, each corresponding to the id attribute of the <th> elements that provide headings for this table cell.

  • rowspan: Contains a non-negative integer value that indicates for how many rows the data cell spans or extends. The default value is 1; if its value is set to 0, it extends until the end of the table grouping section (<thead>, <tbody>, <tfoot>, even if implicitly defined), that the cell belongs to. Values higher than 65534 are clipped to 65534.

本文 更新于: 2025-06-19 01:16:46 创建于: 2025-06-19 01:16:46