- CSS 教程
- CSS - 首页
- CSS - 路线图
- CSS - 简介
- CSS - 语法
- CSS - 选择器
- CSS - 包含
- CSS - 测量单位
- CSS - 颜色
- CSS - 背景
- CSS - 字体
- CSS - 文本
- CSS - 图片
- CSS - 链接
- CSS - 表格
- CSS - 边框
- CSS - 块级边框
- CSS - 内联边框
- CSS - 外边距
- CSS - 列表
- CSS - 内边距
- CSS - 光标
- CSS - 轮廓
- CSS - 尺寸
- CSS - 滚动条
- CSS - 块内元素
- CSS - 下拉菜单
- CSS - 可见性
- CSS - 溢出
- CSS - 清除浮动
- CSS - 浮动
- CSS - 箭头
- CSS - 尺寸调整
- CSS - 引号
- CSS - 排序
- CSS - 定位
- CSS - 连字符
- CSS - 悬停
- CSS - 显示
- CSS - 焦点
- CSS - 缩放
- CSS - 位移
- CSS - 高度
- CSS - 连字符字符
- CSS - 宽度
- CSS - 透明度
- CSS - Z-Index
- CSS - 底部
- CSS - 导航栏
- CSS - 叠加层
- CSS - 表单
- CSS - 对齐
- CSS - 图标
- CSS - 图片库
- CSS - 注释
- CSS - 加载器
- CSS - 属性选择器
- CSS - 组合器
- CSS - 根元素
- CSS - 盒模型
- CSS - 计数器
- CSS - 剪裁
- CSS - 书写模式
- CSS - Unicode-bidi
- CSS - min-content
- CSS - 全部
- CSS - 内嵌
- CSS - 隔离
- CSS - 滚动溢出
- CSS - Justify Items
- CSS - Justify Self
- CSS - Tab Size
- CSS - 指针事件
- CSS - Place Content
- CSS - Place Items
- CSS - Place Self
- CSS - 最大块尺寸
- CSS - 最小块尺寸
- CSS - 混合模式
- CSS - 最大内联尺寸
- CSS - 最小内联尺寸
- CSS - 偏移
- CSS - 重音色
- CSS - 用户选择
- CSS 高级
- CSS - 网格
- CSS - 网格布局
- CSS - Flexbox
- CSS - 可见性
- CSS - 定位
- CSS - 层
- CSS - 伪类
- CSS - 伪元素
- CSS - @规则
- CSS - 文字效果
- CSS - 分页媒体
- CSS - 打印
- CSS - 布局
- CSS - 验证
- CSS - 图片精灵
- CSS - !important
- CSS - 数据类型
- CSS3 教程
- CSS3 - 教程
- CSS - 圆角
- CSS - 边框图片
- CSS - 多背景
- CSS - 颜色
- CSS - 渐变
- CSS - 盒阴影
- CSS - 盒装饰中断
- CSS - 光标颜色
- CSS - 文本阴影
- CSS - 文本
- CSS - 2D 变换
- CSS - 3D 变换
- CSS - 过渡
- CSS - 动画
- CSS - 多列
- CSS - 盒尺寸
- CSS - 工具提示
- CSS - 按钮
- CSS - 分页
- CSS - 变量
- CSS - 媒体查询
- CSS - 函数
- CSS - 数学函数
- CSS - 遮罩
- CSS - 形状
- CSS - 样式图片
- CSS - 特异性
- CSS - 自定义属性
- CSS 响应式
- CSS RWD - 简介
- CSS RWD - 视口
- CSS RWD - 网格视图
- CSS RWD - 媒体查询
- CSS RWD - 图片
- CSS RWD - 视频
- CSS RWD - 框架
- CSS 工具
- CSS - PX 到 EM 转换器
- CSS - 颜色选择器和动画
- CSS 资源
- CSS - 有用资源
- CSS - 讨论
CSS - column-rule-color 属性
CSS column-rule-color 属性设置多列布局中列之间绘制的线条的颜色。column-rule-style 必须声明才能使用此属性。
语法
column-rule-color: color | initial | inherit;
属性值
值 | 描述 |
---|---|
color | 它指定规则的颜色。可以使用不同的颜色格式(名称、rgb 值、十六进制值、hsl 值等)。 |
initial | 这将属性设置为其默认值。 |
inherit | 这从父元素继承属性。 |
CSS 列规则颜色属性示例
以下示例说明了使用不同值的 column-rule-color 属性。
使用颜色名称的列规则颜色属性
要设置规则的颜色,可以使用颜色名称(例如 red、blue、green 等)指定颜色。在以下示例中,颜色名称已与 column-rule-color 属性一起使用。
示例
<!DOCTYPE html> <html> <head> <style> .multicol-col-rule { column-count: 3; column-gap: 40px; column-rule-style: solid; column-rule-width: 5px; } .p1 { column-rule-color: red; } .p2 { column-rule-color: blue; } </style> </head> <body> <h2> CSS column-rule-color property </h2> <p> column-rule-color: Color names( red and blue) </p> <div class="multicol-col-rule p1"> TutorialsPoint is a versatile online educational platform offering free tutorials across various fields such as programming, web development, data science, and more. It features a wealth of resources including step-by-step guides, practical examples, and interactive tools designed to facilitate learning for beginners and advanced users. The platform also provides coding practice exercises, quizzes, and detailed explanations to reinforce understanding. With its user-friendly interface and diverse content, TutorialsPoint is a valuable resource for anyone looking to expand their knowledge and skills. </div><br/> <div class="multicol-col-rule p2"> TutorialsPoint is a versatile online educational platform offering free tutorials across various fields such as programming, web development, data science, and more. It features a wealth of resources including step-by-step guides, practical examples, and interactive tools designed to facilitate learning for beginners and advanced users. The platform also provides coding practice exercises, quizzes, and detailed explanations to reinforce understanding. With its user-friendly interface and diverse content, TutorialsPoint is a valuable resource for anyone looking to expand their knowledge and skills. </div> </body> </html>
使用十六进制值的列规则颜色属性
要设置规则的颜色,可以使用十六进制值(例如 #ff0000、#ffff00 等)指定颜色。在以下示例中,十六进制值已与 column-rule-color 属性一起使用。
示例
<!DOCTYPE html> <html> <head> <style> .multicol-col-rule { column-count: 3; column-gap: 40px; column-rule-style: solid; column-rule-width: 5px; } .p1 { column-rule-color: #ff3300; } .p2 { column-rule-color: #990099; } </style> </head> <body> <h2> CSS column-rule-color property </h2> <p> column-rule-color: Hex values (#ff3300, #990099) </p> <div class="multicol-col-rule p1"> TutorialsPoint is a versatile online educational platform offering free tutorials across various fields such as programming, web development, data science, and more. It features a wealth of resources including step-by-step guides, practical examples, and interactive tools designed to facilitate learning for beginners and advanced users. The platform also provides coding practice exercises, quizzes, and detailed explanations to reinforce understanding. With its user-friendly interface and diverse content, TutorialsPoint is a valuable resource for anyone looking to expand their knowledge and skills. </div><br/> <div class="multicol-col-rule p2"> TutorialsPoint is a versatile online educational platform offering free tutorials across various fields such as programming, web development, data science, and more. It features a wealth of resources including step-by-step guides, practical examples, and interactive tools designed to facilitate learning for beginners and advanced users. The platform also provides coding practice exercises, quizzes, and detailed explanations to reinforce understanding. With its user-friendly interface and diverse content, TutorialsPoint is a valuable resource for anyone looking to expand their knowledge and skills. </div> </body> </html>
使用 RGB 值的列规则颜色属性
要设置规则的颜色,可以使用 rgb 值(例如 rgb(255, 0, 0)、rgb(0, 0, 153) 等)指定颜色。在以下示例中,rgb 值已与 column-rule-color 属性一起使用。
示例
<!DOCTYPE html> <html> <head> <style> .multicol-col-rule { column-count: 3; column-gap: 40px; column-rule-style: solid; column-rule-width: 5px; } .p1 { column-rule-color: rgb(0, 179, 89); } .p2 { column-rule-color: rgb(255, 0, 128); } </style> </head> <body> <h2> CSS column-rule-color property </h2> <p> column-rule-color: RGB Values rgb(0, 179, 89), rgb(255, 0, 128) </p> <div class="multicol-col-rule p1"> TutorialsPoint is a versatile online educational platform offering free tutorials across various fields such as programming, web development, data science, and more. It features a wealth of resources including step-by-step guides, practical examples, and interactive tools designed to facilitate learning for beginners and advanced users. The platform also provides coding practice exercises, quizzes, and detailed explanations to reinforce understanding. With its user-friendly interface and diverse content, TutorialsPoint is a valuable resource for anyone looking to expand their knowledge and skills. </div><br/> <div class="multicol-col-rule p2"> TutorialsPoint is a versatile online educational platform offering free tutorials across various fields such as programming, web development, data science, and more. It features a wealth of resources including step-by-step guides, practical examples, and interactive tools designed to facilitate learning for beginners and advanced users. The platform also provides coding practice exercises, quizzes, and detailed explanations to reinforce understanding. With its user-friendly interface and diverse content, TutorialsPoint is a valuable resource for anyone looking to expand their knowledge and skills. </div> </body> </html>
使用 HSL 值的列规则颜色属性
要设置规则的颜色,可以使用 hsl 值(例如 hsl(0, 100%, 50%)、hsl(60, 100%, 50%) 等)指定颜色。在以下示例中,hsl 值已与 column-rule-color 属性一起使用。
示例
<!DOCTYPE html> <html> <head> <style> .multicol-col-rule { column-count: 3; column-gap: 40px; column-rule-style: solid; column-rule-width: 5px; } .p1 { column-rule-color: hsl(240, 20%, 50%); } .p2 { column-rule-color: hsl(150, 50%, 40%); } </style> </head> <body> <h2> CSS column-rule-color property </h2> <p> column-rule-color: HSL Values hsl(240, 20%, 50%), hsl(150, 50%, 40%) </p> <div class="multicol-col-rule p1"> TutorialsPoint is a versatile online educational platform offering free tutorials across various fields such as programming, web development, data science, and more. It features a wealth of resources including step-by-step guides, practical examples, and interactive tools designed to facilitate learning for beginners and advanced users. The platform also provides coding practice exercises, quizzes, and detailed explanations to reinforce understanding. With its user-friendly interface and diverse content, TutorialsPoint is a valuable resource for anyone looking to expand their knowledge and skills. </div><br/> <div class="multicol-col-rule p2"> TutorialsPoint is a versatile online educational platform offering free tutorials across various fields such as programming, web development, data science, and more. It features a wealth of resources including step-by-step guides, practical examples, and interactive tools designed to facilitate learning for beginners and advanced users. The platform also provides coding practice exercises, quizzes, and detailed explanations to reinforce understanding. With its user-friendly interface and diverse content, TutorialsPoint is a valuable resource for anyone looking to expand their knowledge and skills. </div> </body> </html>
支持的浏览器
属性 | |||||
---|---|---|---|---|---|
column-rule-color | 50.0 | 10.0 | 52.0 | 9.0 | 37.0 |
css_properties_reference.htm
广告