สไตล์คอลัมน์Span Property
ตัวอย่าง
ให้องค์ประกอบ h2 ครอบคลุมทุกคอลัมน์:
document.getElementById("myDIV").style.columnSpan = "all";
ความหมายและการใช้งาน
คุณสมบัติ columnSpan ระบุจำนวนคอลัมน์ที่องค์ประกอบควรขยายข้าม
รองรับเบราว์เซอร์
Property | |||||
---|---|---|---|---|---|
columnSpan | 50.0 | 10.0 | 71.0 | 10.0 | 37.0 |
ไวยากรณ์
ส่งคืนคุณสมบัติ columnSpan:
object.style.columnSpan
ตั้งค่าคุณสมบัติ columnSpan:
object.style.columnSpan = "1|all|initial|inherit"
มูลค่าทรัพย์สิน
Value | Description |
---|---|
1 | Default value. The element should span across one column |
all | The element should span across all columns |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
รายละเอียดทางเทคนิค
ค่าเริ่มต้น: | 1 |
---|---|
คืนมูลค่า: | สตริงที่แสดงถึงคุณสมบัติช่วงคอลัมน์ขององค์ประกอบ |
เวอร์ชัน CSS | CSS3 |
หน้าที่เกี่ยวข้อง
กวดวิชา CSS3: CSS3 หลายคอลัมน์
การอ้างอิง CSS: คุณสมบัติช่วงคอลัมน์
❮ สไตล์วัตถุ