首页 > Web开发 > 详细

css3多栏布局

时间:2017-06-05 13:11:47      阅读:393      评论:0      收藏:0      [点我收藏+]
<style type="text/css">
        .box{
            column-width: 100px; /*设定栏位宽度*/
            column-count: 3; /***设定栏位数量***/
            column-gap: 100px; /**设定栏位间隔*/
            column-rule: 2px solid red; /***设定栏位间隔线*/

        }
        .box.tit{
            column-span: all; /*  值为1 或all  1跨越1列  all跨越所有列*/
            text-align: center;
            color: red;
        }
    </style>
</head>
<body>

    <div class="box">
        <div class="tit">跨越所有列</div>

 

css3多栏布局

原文:http://www.cnblogs.com/jinsuo/p/6944284.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!