Thuộc tính style columnRuleStyle
Thí dụ
Thay đổi kiểu của quy tắc giữa các cột:
document.getElementById("myDIV").style.columnRuleStyle = "dotted";
Định nghĩa và Cách sử dụng
Thuộc tính columnRuleStyle chỉ định kiểu của quy tắc giữa các cột.
Hỗ trợ trình duyệt
Property | |||||
---|---|---|---|---|---|
columnRuleStyle | 50.0 | 10.0 | 52.0 | 10.0 | 37.0 |
Cú pháp
Trả về thuộc tính columnRuleStyle:
object.style.columnRuleStyle
Đặt thuộc tính columnRuleStyle:
object.style.columnRuleStyle = "none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|
initial|inherit"
Giá trị tài sản
Value | Description |
---|---|
none | Default value. Defines no rule |
hidden | Defines a hidden rule |
dotted | Defines a dotted rule |
dashed | Defines a dashed rule |
solid | Defines a solid rule |
double | Defines a double rule |
groove | Specifies a 3D grooved rule. The effect depends on the width and color values |
ridge | Specifies a 3D ridged rule. The effect depends on the width and color values |
inset | Specifies a 3D inset rule. The effect depends on the width and color values |
outset | Specifies a 3D outset rule. The effect depends on the width and color values |
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: | không ai |
---|---|
Giá trị trả lại: | Một chuỗi, đại diện cho thuộc tính kiểu 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 column-rule-style
❮ Đối tượng phong cách