示例
<!DOCTYPE html>
<html lang="cn">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>瀑布流效果</title>
<style>
.box {
column-count: 5;
}
.box>div {
border: 3px solid green;
padding: 5px;
margin-bottom: 10px;
break-inside: avoid;
}
.box img {
width: 100%;
}
.box div p {
line-height: 30px;
text-align: center;
font-size: 14px;
}
</style>
</head>
<body>
<div class="box">
<div>
<img src="Res/Star/01.jpeg" alt="">
<p>明信片01</p>
</div>
<div>