สไตล์คอลัมน์คุณสมบัติ
ตัวอย่าง
แบ่งข้อความออกเป็นสามคอลัมน์ แต่ละคอลัมน์อย่างน้อย 100 พิกเซล:
document.getElementById("myDIV").style.columns = "100px 3";
ความหมายและการใช้งาน
คุณสมบัติ columns เป็นคุณสมบัติชวเลขสำหรับการตั้งค่า columnWidth และ columnCount
รองรับเบราว์เซอร์
Property | |||||
---|---|---|---|---|---|
columns | 50.0 | 10.0 | 52.0 | 10.0 | 37.0 |
ไวยากรณ์
ส่งกลับคุณสมบัติคอลัมน์:
object.style.columns
ตั้งค่าคุณสมบัติคอลัมน์:
object.style.columns = "auto|column-width column-count|initial|inherit"
มูลค่าทรัพย์สิน
Value | Description |
---|---|
auto | Default value. Sets both the column width to "auto" and the column-count to "auto" |
columnWidth | The width of the columns |
columnCount | The number of columns |
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: คุณสมบัติคอลัมน์
❮ สไตล์วัตถุ