在线文档教程
CSS

列规则风格 | column-rule-style

column-rule-style

通过column-rule-styleCSS属性,可以设置在多列布局的列之间绘制的规则的样式。

column-rule-style: none; column-rule-style: hidden; column-rule-style: dotted; column-rule-style: dashed; column-rule-style: solid; column-rule-style: double; column-rule-style: groove; column-rule-style: ridge; column-rule-style: inset; column-rule-style: outset; /* Global values */ column-rule-style: inherit; column-rule-style: initial; column-rule-style: unset;

初始值没有
适用于多元元素
遗传没有
媒体 visual
计算值作为指定
动画类型离散的
规范的顺序逐个语法

语法

单一的<br-style>价值。

是通过border-style描述规则的样式来定义的关键字。样式必须解释为在折叠边框模型中。

形式语法

<'border-style'>

#header { -moz-column-count: 3; -moz-column-gap: 40px; -moz-column-rule-style: solid; }

<div id="header"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris sit amet maximus quam. Fusce tempor metus turpis, sit amet bibendum purus tincidunt sit amet. Etiam pretium tempus nibh id pharetra. Nullam ut fermentum est. Integer ut convallis eros, sed laoreet dui. Quisque semper eget tortor ac tempor. Vestibulum quis risus ac ex ultricies vehicula. Duis placerat elementum lectus, id vulputate urna placerat vel. Ut tincidunt sit amet velit sed imperdiet. Duis et urna et sem ultricies rhoncus fermentum vitae est. </div>

规范

SpecificationStatusComment
CSS Multi-column Layout ModuleThe definition of 'column-rule-style' in that specification.Candidate RecommendationInitial definition

浏览器兼容性

FeatureChromeEdgeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
Basic support(Yes)-webkit 50.01(Yes)3.5 (1.9.1)-moz 52.0 (52.0)21011.103.0 (522)-webkit
Unprefixed(Yes)

FeatureAndroidAndroid WebviewEdgeFirefox Mobile (Gecko)IE PhoneOpera MobileSafari MobileChrome for Android
Basic support?? 50.01(Yes)(Yes) 52.0 (52.0)2???? 50.01
UnprefixedNo support(Yes)