在线文档教程
CSS

列规定颜色 | column-rule-color

column-rule-color

column-rule-colorCSS属性可以让你设置的“规则”或行多列布局列之间绘制的颜色。

/* <color> values */ column-rule-color: red; column-rule-color: rgb(192, 56, 78 column-rule-color: transparent; column-rule-color: hsla(0, 100%, 50%, 0.6 /* Global values */ column-rule-color: inherit; column-rule-color: initial; column-rule-color: unset;

初始值currentcolor
适用于 multicol elements
遗传没有
媒体 visual
计算值计算的颜色
动画类型一个颜色
规范的顺序逐个语法

语法

单一的<color>价值。

<color>是<color>表示规则分隔列颜色的值。

形式语法

<color>where <color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color> where <rgb()> = rgb( [ [ <percentage>{3} | <number>{3} ] [ / <alpha-value> ]? ] | [ [ <percentage>#{3} | <number>#{3} ] , <alpha-value>? ] ) <rgba()> = rgba( [ [ <percentage>{3} | <number>{3} ] [ / <alpha-value> ]? ] | [ [ <percentage>#{3} | <number>#{3} ] , <alpha-value>? ] ) <hsl()> = hsl( [ <hue> <percentage> <percentage> [ / <alpha-value> ]? ] | [ <hue>, <percentage>, <percentage>, <alpha-value>? ] ) <hsla()> = hsla( [ <hue> <percentage> <percentage> [ / <alpha-value> ]? ] | [ <hue>, <percentage>, <percentage>, <alpha-value>? ] ) where <alpha-value> = <number> | <percentage> <hue> = <number> | <angle>

#header { column-rule-color: blue; }

规范

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

浏览器兼容性

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

FeatureAndroidAndroid WebviewEdgeFirefox Mobile (Gecko)IE MobileOpera MobileSafari MobileChrome for Android
Basic support?? 50.01(Yes)-webkit (Yes)(Yes) 52.0 (52.0)2???? 50.01