目录

style columnRuleStyle 属性

示例

更改列之间规则的样式:

document.getElementById("myDIV").style.columnRuleStyle = "dotted";
亲自试一试 »

描述

columnRuleStyle 属性指定列之间的规则的样式。


浏览器支持

Property
columnRuleStyle 50.0 10.0 52.0 10.0 37.0

语法

返回columnRuleStyle属性:

object.style.columnRuleStyle

设置columnRuleStyle属性:

object.style.columnRuleStyle = "none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|
initial|inherit"

属性值

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

技术细节

默认值: 没有任何
返回值: 一个字符串,表示元素的列规则样式属性
CSS版本 CSS3

相关页面

CSS3教程:CSS3 多列

CSS 参考:列规则样式属性