- 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 轴索引
- CSS - 底部
- CSS - 导航栏
- CSS - 覆盖层
- CSS - 表单
- CSS - 对齐
- CSS - 图标
- CSS - 图片库
- CSS - 注释
- CSS - 加载器
- CSS - 属性选择器
- CSS - 组合器
- CSS - 根元素
- CSS - 盒模型
- CSS - 计数器
- CSS - 剪裁
- CSS - 书写模式
- CSS - Unicode 双向算法
- CSS - min-content
- CSS - 全部
- CSS - 内嵌
- CSS - 隔离
- CSS - 滚动溢出
- CSS - Justify Items
- CSS - Justify Self
- CSS - 制表符大小
- 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-style 属性
CSS 的column-rule-style属性设置在多列布局中列之间绘制的线条的样式。
语法
column-rule-style: none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset | initial | inherit;
属性值
值 | 描述 |
---|---|
none | 指定没有规则。默认值。 |
hidden | 指定隐藏的规则。 |
dotted | 指定点状规则。 |
dashed | 指定虚线规则。 |
solid | 指定实线规则。 |
double | 指定双线规则。 |
groove | 指定 3D 凹槽规则。效果取决于宽度和颜色值。 |
ridge | 指定 3D 脊状规则。效果取决于宽度和颜色值。 |
inset | 指定 3D 内嵌规则。效果取决于宽度和颜色值。 |
outset | 指定 3D 外凸规则。效果取决于宽度和颜色值。 |
initial | 将属性设置为默认值。 |
inherit | 从父元素继承属性。 |
CSS 列规则样式属性示例
以下示例使用不同的值解释了column-rule-style属性。
使用 None 值的列规则样式属性
要使列之间没有任何规则,我们使用none值。这在以下示例中显示。
示例
<!DOCTYPE html> <html> <head> <style> .multicol-col-rule { column-count: 3; column-gap: 40px; column-rule-width: 5px; column-rule-style: none; } </style> </head> <body> <h2> CSS column-rule-style property </h2> <p> column-rule-style: none </p> <div class="multicol-col-rule"> 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/> </body> </html>
使用 Hidden 值的列规则样式属性
要使列之间有透明规则,我们使用hidden值。此值与 none 的唯一区别在于,hidden 创建一个透明规则,而 none 不创建任何规则。这在以下示例中显示。
示例
<!DOCTYPE html> <html> <head> <style> .multicol-col-rule { column-count: 3; column-gap: 40px; column-rule-color: yellow; column-rule-width: 8px; column-rule-style: hidden; } </style> </head> <body> <h2> CSS column-rule-style property </h2> <p> column-rule-style: hidden </p> <div class="multicol-col-rule"> 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/> </body> </html>
使用 Dotted 值的列规则样式属性
要使列之间有点状规则,我们使用dotted值。这在以下示例中显示。
示例
<!DOCTYPE html> <html> <head> <style> .multicol-col-rule { column-count: 3; column-gap: 40px; column-rule-width: 5px; column-rule-style: dotted; } </style> </head> <body> <h2> CSS column-rule-style property </h2> <p> column-rule-style: dotted </p> <div class="multicol-col-rule"> 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/> </body> </html>
使用 Dashed 值的列规则样式属性
要使列之间有虚线规则,我们使用dashed值。这在以下示例中显示。
示例
<!DOCTYPE html> <html> <head> <style> .multicol-col-rule { column-count: 3; column-gap: 40px; column-rule-width: 5px; column-rule-style: dashed; } </style> </head> <body> <h2> CSS column-rule-style property </h2> <p> column-rule-style: dashed </p> <div class="multicol-col-rule"> 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/> </body> </html>
使用 Solid 值的列规则样式属性
要使列之间有实线规则,我们使用solid值。这在以下示例中显示。
示例
<!DOCTYPE html> <html> <head> <style> .multicol-col-rule { column-count: 3; column-gap: 40px; column-rule-width: 5px; column-rule-style: solid; } </style> </head> <body> <h2> CSS column-rule-style property </h2> <p> column-rule-style: solid </p> <div class="multicol-col-rule"> 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/> </body> </html>
使用 Double 值的列规则样式属性
要使列之间有双线规则,我们使用double值。这在以下示例中显示。
示例
<!DOCTYPE html> <html> <head> <style> .multicol-col-rule { column-count: 3; column-gap: 40px; column-rule-width: 5px; column-rule-style: double; } </style> </head> <body> <h2> CSS column-rule-style property </h2> <p> column-rule-style: double </p> <div class="multicol-col-rule"> 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/> </body> </html>
使用 Groove 值的列规则样式属性
要使列之间有凹槽规则,我们使用groove值。这在以下示例中显示。
示例
<!DOCTYPE html> <html> <head> <style> .multicol-col-rule { column-count: 3; column-gap: 40px; column-rule-color: yellow; column-rule-width: 8px; column-rule-style: groove; } </style> </head> <body> <h2> CSS column-rule-style property </h2> <p> column-rule-style: groove </p> <div class="multicol-col-rule"> 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/> </body> </html>
使用 Ridge 值的列规则样式属性
要使列之间有脊状规则,我们使用ridge值。这在以下示例中显示。
示例
<!DOCTYPE html> <html> <head> <style> .multicol-col-rule { column-count: 3; column-gap: 40px; column-rule-color: yellow; column-rule-width: 8px; column-rule-style: ridge; } </style> </head> <body> <h2> CSS column-rule-style property </h2> <p> column-rule-style: ridge </p> <div class="multicol-col-rule"> 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/> </body> </html>
使用 Inset 值的列规则样式属性
要使列之间有内嵌规则,我们使用inset值。这在以下示例中显示。
示例
<!DOCTYPE html> <html> <head> <style> .multicol-col-rule { column-count: 3; column-gap: 40px; column-rule-color: yellow; column-rule-width: 8px; column-rule-style: inset; } </style> </head> <body> <h2> CSS column-rule-style property </h2> <p> column-rule-style: inset </p> <div class="multicol-col-rule"> 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/> </body> </html>
使用 Outset 值的列规则样式属性
要使列之间有外凸规则,我们使用outset值。这在以下示例中显示。
示例
<!DOCTYPE html> <html> <head> <style> .multicol-col-rule { column-count: 3; column-gap: 40px; column-rule-color: yellow; column-rule-width: 8px; column-rule-style: outset; } </style> </head> <body> <h2> CSS column-rule-style property </h2> <p> column-rule-style: outset </p> <div class="multicol-col-rule"> 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/> </body> </html>
支持的浏览器
属性 | |||||
---|---|---|---|---|---|
column-rule-style | 50.0 | 10.0 | 52.0 | 9.0 | 37.0 |
css_properties_reference.htm
广告