瀑布流

<!doctype html>
<html>

<head>
<meta charset="utf-8">
<title>瀑布流</title>
<style>
.box{
width: 1000px;
border: 1px solid red;
margin: auto;
display: block;
}
.img-wrap34{
column-gap: 15px;
-moz-column-gap: 15px;
-webkit-column-gap: 15px;
-moz-column-count:5; /* Firefox */
-webkit-column-count:5; /* Safari and Chrome */
column-count:5;
}
.img-wrap34 div img{
width: 200px;
}
</style>
</head>

<body>
<div class="box">
<div class="img-wrap34">
<div><img src="img/img1.jpg" /></div>
<div><img src="img/img2.jpg" /></div>
<div><img src="img/1.jpg" /></div>
<div><img src="img/img1.jpg" /></div>
<div><img src="img/img1.jpg" /></div>
<div><img src="img/1.jpg" /></div>
<div><img src="img/img2.jpg" /></div>
<div><img src="img/img1.jpg" /></div>
<div><img src="img/1.jpg" /></div>
<div><img src="img/2.jpg" /></div>
<div><img src="img/img2.jpg" /></div>
<div><img src="img/img1.jpg" /></div>
<div><img src="img/1.jpg" /></div>
<div><img src="img/img2.jpg" /></div>
<div><img src="img/2.jpg" /></div>
<div><img src="img/img1.jpg" /></div>
<div><img src="img/img2.jpg" /></div>
<div><img src="img/img1.jpg" /></div>
<div><img src="img/2.jpg" /></div>
<div><img src="img/img1.jpg" /></div>
<div><img src="img/img2.jpg" />
</div>
</div>
</body>

</html>

你可能感兴趣的:(瀑布流)