Đối tượng HTML DOM THead
Đối tượng đầu
Đối tượng THead đại diện cho phần tử HTML <thead>.
Truy cập đối tượng THead
Bạn có thể truy cập phần tử <thead> bằng cách sử dụng getElementById():
Tạo một đối tượng THead
Bạn có thể tạo phần tử <thead> bằng cách sử dụng phương thức document.createElement():
Thuộc tính đối tượng THead
Property | Description |
---|---|
align | Not supported in HTML5. Use style.textAlign instead. Sets or returns the horizontal alignment of the content inside the thead element |
ch | Not supported in HTML5. Sets or returns an alignment character inside the thead 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 THead 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 <thead>