คุณสมบัติCSS ด้านคำอธิบายภาพ
ตัวอย่าง
ระบุตำแหน่งของคำอธิบายตาราง:
#example1 {
caption-side: bottom;
}
#example2 {
caption-side: top;
}
ความหมายและการใช้งาน
คุณสมบัติcaption-side
ระบุตำแหน่งของคำอธิบายตาราง
ค่าเริ่มต้น: | สูงสุด |
---|---|
รับการถ่ายทอด: | ใช่ |
เคลื่อนไหวได้: | ไม่. อ่านเกี่ยวกับแอนิเมชั่น |
รุ่น: | CSS2 |
ไวยากรณ์ JavaScript: | วัตถุ .style.captionSide="bottom" |
รองรับเบราว์เซอร์
ตัวเลขในตารางระบุเบราว์เซอร์รุ่นแรกที่สนับสนุนคุณสมบัติอย่างสมบูรณ์
Property | |||||
---|---|---|---|---|---|
caption-side | 1.0 | 8.0 | 1.0 | 1.0 | 4.0 |
ไวยากรณ์ CSS
caption-side: top|bottom|initial|inherit;
มูลค่าทรัพย์สิน
Value | Description | Play it |
---|---|---|
top | Puts the caption above the table. This is default | |
bottom | Puts the 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: CSS Table
การอ้างอิง HTML DOM: คำอธิบายคุณสมบัติด้านข้าง