สไตล์คอลัมน์Count Property
ตัวอย่าง
แบ่งข้อความในองค์ประกอบ div ออกเป็นสามคอลัมน์:
document.getElementById("myDIV").style.columnCount = 3;
ความหมายและการใช้งาน
คุณสมบัติ columnCount ระบุจำนวนคอลัมน์ที่องค์ประกอบควรแบ่งออกเป็น
รองรับเบราว์เซอร์
Property | |||||
---|---|---|---|---|---|
columnCount | 50.0 | 10.0 | 52.0 | 10.0 | 37.0 |
ไวยากรณ์
ส่งคืนคุณสมบัติ columnCount:
object.style.columnCount
ตั้งค่าคุณสมบัติ columnCount:
object.style.columnCount = "number|auto|initial|inherit"
มูลค่าทรัพย์สิน
Value | Description |
---|---|
number | The optimal number of columns into which the content of the element will be flowed |
auto | Default value. The number of columns will be determined by other properties, like e.g. "column-width" |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
รายละเอียดทางเทคนิค
ค่าเริ่มต้น: | รถยนต์ |
---|---|
คืนมูลค่า: | สตริงที่แสดงถึงคุณสมบัติการนับคอลัมน์ขององค์ประกอบ |
เวอร์ชัน CSS | CSS3 |
หน้าที่เกี่ยวข้อง
กวดวิชา CSS3: CSS3 หลายคอลัมน์
การอ้างอิง CSS: คุณสมบัติการนับคอลัมน์
❮ สไตล์วัตถุ