Thuộc tính quy tắc cột kiểu
Thí dụ
Chỉ định chiều rộng, kiểu và màu của quy tắc giữa các cột:
document.getElementById("myDIV").style.columnRule = "3px outset blue";
Định nghĩa và Cách sử dụng
Thuộc tính columnRule là một thuộc tính viết tắt để thiết lập tất cả các thuộc tính columnRule.
Thuộc tính columnRule đặt chiều rộng, kiểu và màu của quy tắc giữa các cột.
Các thuộc tính quy tắc cột, theo bất kỳ thứ tự nào:
columnRuleColor
columnRuleStyle
columnRuleWidth
Hỗ trợ trình duyệt
Property | |||||
---|---|---|---|---|---|
columnRule | 50.0 | 10.0 | 52.0 | 10.0 | 37.0 |
Cú pháp
Trả về thuộc tính columnRule:
object.style.columnRule
Đặt thuộc tính columnRule:
object.style.columnRule = "column-rule-width column-rule-style column-rule-color|initial|inherit"
Giá trị tài sản
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 |
Chi tiết kỹ thuật
Giá trị mặc định: | vừa không có màu |
---|---|
Giá trị trả lại: | Một chuỗi, đại diện cho thuộc tính quy tắc cột của một phần tử |
Phiên bản CSS | CSS3 |
Các trang liên quan
Hướng dẫn CSS3: Nhiều cột CSS3
Tham chiếu CSS: thuộc tính quy tắc cột
❮ Đối tượng phong cách