实例:自适应瀑布流布局
技术栈:HTML+CSS+JS
效果:
源码:
【HTML】
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
<title>自适应瀑布流布局</title>
<link rel="stylesheet" href="194.css">
</head>
<body>
<div class="container"></div>
</body>
</html>
<script src="194.js"></script>
【CSS】
*{
margin: 0;
padding: 0;
}
.container{
width: 90%;
m