CSS3实现瀑布流效果

来源:互联网 发布:怎么查看网页源码 编辑:程序博客网 时间:2024/05/22 06:37
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>瀑布流的纯css实现</title>
</head>
<style type="text/css">
.container{
    column-width:160px;
    column-gap:5px;
   
}
.container div {
width:160px;
margin: 4px 0;
}


/*数据块 砖块*/




</style>
<body>
<div class="container">
<div><img src="images/1.jpg" alt=""></div>
<div><img src="images/2.jpg" alt=""></div>
<div><img src="images/3.jpg" alt=""></div>
<div><img src="images/4.jpg" alt=""></div>
<div><img src="images/5.jpg" alt=""></div>
<div><img src="images/6.jpg" alt=""></div>
<div><img src="images/7.jpg" alt=""></div>
<div><img src="images/8.jpg" alt=""></div>
<div><img src="images/9.jpg" alt=""></div>
<div><img src="images/10.jpg" alt=""></div>
<div><img src="images/11.jpg" alt=""></div>
<div><img src="images/12.jpg" alt=""></div>
<div><img src="images/13.jpg" alt=""></div>
<div><img src="images/14.jpg" alt=""></div>
<div><img src="images/15.jpg" alt=""></div>
<div><img src="images/16.jpg" alt=""></div>
<div><img src="images/17.jpg" alt=""></div>
<div><img src="images/18.jpg" alt=""></div>
<div><img src="images/19.jpg" alt=""></div>
<div><img src="images/20.jpg" alt=""></div>
</div>
</body>
</html>
原创粉丝点击