HTML DOM THead Object
THead Object
วัตถุ THead แสดงถึงองค์ประกอบ HTML <thead>
เข้าถึงวัตถุ THead
คุณสามารถเข้าถึง <thead> องค์ประกอบโดยใช้ getElementById():
ตัวอย่าง
var x = document.getElementById("myTHead");
สร้างวัตถุ THead
คุณสามารถสร้าง <thead> องค์ประกอบโดยใช้ document.createElement() วิธีการ:
ตัวอย่าง
var x = document.createElement("THEAD");
คุณสมบัติของวัตถุ 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 |
คุณสมบัติและเหตุการณ์มาตรฐาน
ออบเจ็กต์ THead ยังสนับสนุนคุณสมบัติและเหตุการณ์ มาตรฐาน อีกด้วย
หน้าที่เกี่ยวข้อง
กวดวิชา HTML: ตาราง HTML
การอ้างอิง HTML: แท็ก HTML <thead>