สไตล์คอลัมน์คุณสมบัติ กฎ
ตัวอย่าง
ระบุความกว้าง ลักษณะ และสีของกฎระหว่างคอลัมน์:
document.getElementById("myDIV").style.columnRule = "3px outset blue";
ความหมายและการใช้งาน
คุณสมบัติ columnRule เป็นคุณสมบัติชวเลขสำหรับการตั้งค่าคุณสมบัติ columnRule ทั้งหมด
คุณสมบัติ columnRule กำหนดความกว้าง ลักษณะ และสีของกฎระหว่างคอลัมน์
คุณสมบัติของกฎคอลัมน์จะเรียงลำดับดังนี้:
คอลัมน์
กฎคอลัมน์สีกฎสไตล์คอลัมน์ กฎความ
กว้าง
รองรับเบราว์เซอร์
Property | |||||
---|---|---|---|---|---|
columnRule | 50.0 | 10.0 | 52.0 | 10.0 | 37.0 |
ไวยากรณ์
ส่งคืนคุณสมบัติ columnRule:
object.style.columnRule
ตั้งค่าคุณสมบัติ columnRule:
object.style.columnRule = "column-rule-width column-rule-style column-rule-color|initial|inherit"
มูลค่าทรัพย์สิน
Value | Description |
---|---|
columnRuleWidth | Sets the width of the rule between columns. Default value is medium |
columnRuleStyle | Sets the style of the rule between columns. Default value is none |
columnRuleColor | Sets the color of the rule between columns. Default value is the color of the element |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
รายละเอียดทางเทคนิค
ค่าเริ่มต้น: | ปานกลางไม่มีสี |
---|---|
คืนมูลค่า: | A String แทนคุณสมบัติ column-rule ของ element |
เวอร์ชัน CSS | CSS3 |
หน้าที่เกี่ยวข้อง
กวดวิชา CSS3: CSS3 หลายคอลัมน์
การอ้างอิง CSS: คุณสมบัติกฎของคอลัมน์
❮ สไตล์วัตถุ