1 Star 0 Fork 1

武林盟主vs/jsdemo

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
flow.html 1.80 KB
一键复制 编辑 原始数据 按行查看 历史
武林盟主vs 提交于 2018-06-28 23:49 . 瀑布流
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>瀑布流布局</title>
<style>
body{
background-color: #f2f2f2;
margin: 0;
padding: 0;
}
*{
margin: 0;
padding: 0;
}
.wraper{
width:780px;
margin: 30px auto;
}
.flow-box{
width:240px;
float: left;
display: inline;
margin-left: 20px;
background-color: #fff;
margin-bottom: 20px;
}
.flow-img{
width:100%;
line-height: 100px;
text-align: center;
font-size: 30px;
}
.flow-des{
padding: 20px;
height: 60px;
font-size: 14px;
}
.flow-img1{
height: 230px;
background-color: pink;
}
.flow-img2{
height: 150px;
background-color: orchid;
}
.flow-img3{
height: 350px;
background-color: olivedrab;
}
.flow-img4{
height: 250px;
background-color: blueviolet;
}
.flow-img5{
height: 380px;
background-color: indianred;
}
.flow-img6{
height: 180px;
background-color: skyblue;
}
</style>
</head>
<body>
<div class="wraper">
<div class="flow-box">
<div class="flow-img flow-img1">1</div>
<p class="flow-des">我是第1个</p>
</div>
<div class="flow-box">
<div class="flow-img flow-img2">2</div>
<p class="flow-des">我是第2个</p>
</div>
<div class="flow-box">
<div class="flow-img flow-img3">3</div>
<p class="flow-des">我是第3个</p>
</div>
<div class="flow-box">
<div class="flow-img flow-img4">4</div>
<p class="flow-des">我是第4个</p>
</div>
<div class="flow-box">
<div class="flow-img flow-img5">5</div>
<p class="flow-des">我是第5个</p>
</div>
<div class="flow-box">
<div class="flow-img flow-img6">6</div>
<p class="flow-des">我是第6个</p>
</div>
</div>
</body>
</html>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/yaozhixing1688/jsdemo.git
git@gitee.com:yaozhixing1688/jsdemo.git
yaozhixing1688
jsdemo
jsdemo
master

搜索帮助