css中的column-rule-width属性怎么用
导读:本文共1372.5字符,通常情况下阅读需要5分钟。同时您也可以点击右侧朗读,来听本文内容。按键盘←(左) →(右) 方向键可以翻页。
摘要: csscolumn-rule-width属性定义及用法 在css中,column-rule-width属性是用在多列布局元素中,用来设置列与列之间分割线的宽度。通常与column-count、column-rule-style等多列布局属性一起使用,使用它的前提条件是,通过column-count、column等属性定义了多列布局,并且... ...
目录
(为您整理了一些要点),点击可以直达。csscolumn-rule-width属性定义及用法
在css中,column-rule-width属性是用在多列布局元素中,用来设置列与列之间分割线的宽度。通常与column-count、column-rule-style等多列布局属性一起使用,使用它的前提条件是,通过column-count、column等属性定义了多列布局,并且设置了列与列之间的分割样式(如:column-rule-style属性定义了分割线),单独使用column-rule-width属性是没有效果的;
csscolumn-rule-width属性语法格式
css语法:column-rule-width:thin/medium/thick/length;(例:column-rule-width:16px;)
JavaScript语法:object.style.columnRuleWidth="18px"
csscolumn-rule-width属性值说明
thin:细的分隔线
medium:中等的分隔线
thick:粗的分隔线
length:自定义宽度的分隔线(如:12px)
实例
<!DOCTYPEhtml>
<html>
<head>
<metacharset="utf-8"/>
<title>css3column-rule-width属性设置列之间分割线的宽度笔记</title>
<styletype="text/css">
body{background:#ddd;}div{width:400px;border:1pxsolidblueviolet;margin-top:10px;:;}
.thin{column-count:3;column-rule-style:solid;column-rule-width:thin;}
.thick{column-count:3;column-rule-style:solid;column-rule-width:thick;}
.length{column-count:3;column-rule-style:solid;column-rule-width:8px;}
</style>
</head>
<body>
<divclass="thin">column-rule-width:thin;演示,设置细分割线。这是为了演示效果多写的</div>
<divclass="thick">column-rule-width:thick;演示,设置粗分割线。这是为了演示效果多写的</div>
<divclass="length">column-rule-width:8px;,设置分割线的宽度为8px。这是为了演示效果多写的</div>
</body>
</html>
</div> <div class="zixun-tj-product adv-bottom"></div> </div> </div> <div class="prve-next-news">
css中的column-rule-width属性怎么用的详细内容,希望对您有所帮助,信息来源于网络。