当前第2页 返回上一页
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | <!DOCTYPE html>
<html>
<head>
<meta charset= "utf-8" />
<title>css 3 多列布局之column-width属性设置列的宽度</title>
<style type= "text/css" >
body{ background : #ddd ;}div{ width : 400px ; border : 1px solid blueviolet; margin-top : 10px ;column-rule-style: solid ;}
.a{column- width : 80px ;} .b{column- width : 100px ;} .c{column- width : 180px ;}
</style>
</head>
<body>
<div class= "a" >column- width : 80px ;演示:列宽设置为 80px 。这是为了演示效果多写的</div>
<div class= "b" >column- width : 100px ;演示:列宽设置为 100px 。这是为了演示效果多写的</div>
<div class= "c" >column- width : 180px ;演示:列宽设置为 180 p。这是为了演示效果多写的</div>
</body>
</html>
|
运行结果

以上就是css column-width属性怎么用的详细内容,更多文章请关注木庄网络博客!
返回前面的内容
相关阅读 >>
asp怎样引入css样式
css怎样实现div高度自适应
聊聊你可能不了解的css属性函数 attr()
css是干什么的
如何合理使用css框架?
样式表css有哪几种类型
css中auto什么意思
css怎样设置图片之间的间隔
15 个优秀的响应式 web 设计 html 和 css 框架
css背景图片显示不完整怎么办
更多相关阅读请进入《css》频道 >>
人民邮电出版社
本书对 Vue.js 3 技术细节的分析非常可靠,对于需要深入理解 Vue.js 3 的用户会有很大的帮助。——尤雨溪,Vue.js作者
转载请注明出处:木庄网络博客 » css column-width属性怎么用