Đối tượng Tbody HTML DOM
Đối tượng Tbody
Đối tượng TBody đại diện cho phần tử HTML <tbody>.
Truy cập đối tượng TBody
Bạn có thể truy cập phần tử <tbody> bằng cách sử dụng getElementById():
Tạo một đối tượng TBody
Bạn có thể tạo phần tử <tbody> bằng cách sử dụng phương thức document.createElement():
Thuộc tính đối tượng TBody
Property | Description |
---|---|
align | Not supported in HTML5. Use style.textAlign instead. Sets or returns the horizontal alignment of the content inside the tbody element |
ch | Not supported in HTML5. Sets or returns an alignment character inside the tbody element |
chOff | Not supported in HTML5. Sets or returns the horizontal offset of the ch property |
vAlign | Not supported in HTML5. Use style.verticalAlign instead. Sets or returns the vertical alignment of the content within a thead element |
Thuộc tính và sự kiện tiêu chuẩn
Đối tượng TBody cũng hỗ trợ các thuộc tính và sự kiện tiêu chuẩn.
Trang liên quan
Hướng dẫn HTML: Bảng HTML
Tham chiếu HTML: thẻ HTML <tbody>