Thuộc tính quy tắc cột kiểu
Ví dụ
Chỉ định chiều rộng, kiểu dáng và màu sắc của quy tắc giữa các cột:
document.getElementById("myDIV").style.columnRule = "3px outset blue";
Hãy tự mình thử »Sự miêu tả
Thuộc tính ColumnRule là thuộc tính viết tắt để thiết lập tất cả các thuộc tính của 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 của quy tắc cột theo thứ tự bất kỳ:
cộtQuy tắcMàu
cộtRuleStyle
cộtQuy tắcChiều rộng
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 cộtRule:
object .style.columnRule
Đặt thuộc tính cộtRule:
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ả về: | Một Chuỗi, biểu thị thuộc tính quy tắc cột của một phần tử |
Phiên bản CSS | CSS3 |
Trang liên quan
Hướng dẫn CSS3: CSS3 nhiều cột
Tham chiếu CSS: thuộc tính quy tắc cột