คำบรรยายลักษณะคุณสมบัติ ด้านข้าง
ตัวอย่าง
ย้ายคำอธิบายตารางไปที่ด้านล่างของตาราง:
document.getElementById("myCap").style.captionSide = "bottom";
ความหมายและการใช้งาน
คุณสมบัติ captionSide ตั้งค่าหรือส่งคืนตำแหน่งของคำอธิบายตาราง
รองรับเบราว์เซอร์
Property | |||||
---|---|---|---|---|---|
captionSide | Yes | 9.0 | Yes | Yes | Yes |
ไวยากรณ์
ส่งคืนคุณสมบัติ CaptionSide:
object.style.captionSide
ตั้งค่าคุณสมบัติ CaptionSide:
object.style.captionSide = "top|bottom|initial|inherit"
มูลค่าทรัพย์สิน
Value | Description |
---|---|
top | Default. Positions the table caption above the table |
bottom | Positions the table caption below the table |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
รายละเอียดทางเทคนิค
ค่าเริ่มต้น: | สูงสุด |
---|---|
คืนมูลค่า: | สตริงแทนตำแหน่งของคำอธิบายตาราง |
เวอร์ชัน CSS | CSS2 |
ตัวอย่างเพิ่มเติม
ตัวอย่าง
กลับคำบรรยายตาราง:
alert(document.getElementById("myCap").style.captionSide);
หน้าที่เกี่ยวข้อง
กวดวิชา CSS: CSS Table
การอ้างอิง CSS: คุณสมบัติด้านคำอธิบายภาพ
❮ สไตล์วัตถุ