Đối tượng HTML DOM THead
Đối tượng THead
Đối tượng THead đại diện cho một phần tử HTML <thead>.
Truy cập một đối tượng THead
Bạn có thể truy cập phần tử <thead> bằng cách sử dụng getElementById ():
Thí dụ
var x = document.getElementById("myTHead");
Tạo một đối tượng THead
Bạn có thể tạo một phần tử <thead> bằng cách sử dụng phương thức document.createElement ():
Thí dụ
var x = document.createElement("THEAD");
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 .
Các trang liên quan
Hướng dẫn HTML: Bảng HTML
Tham chiếu HTML: Thẻ HTML <thead>