css3瀑布流实现
2019/01/22
重点:
column-count:2;
break-inside: avoid;
示例
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
<meta property="og:title" content="标题" />
<meta name="format-detection" content="telephone=no,email=no,adress=no"/>
<title></title>
<style type="text/css" media="screen">
img{
max-width: 100%;
}
.list .bd{
column-count:2;
column-gap: .24rem;
display:block;
}
.list .bd .item{
display:flex;
flex-flow: row nowrap;
justify-content: space-between;
align-items: flex-start;
break-inside: avoid;
margin-bottom: .24rem!important;
}
</style>
</head>
<body>
<div class="list mb25">
<div>
<a href="">
<img src="images/1.jpg" alt="">
</a>
<a href="">
<img src="images/2.jpg" alt="">
</a>
<a href="">
<img src="images/3.jpg" alt="">
</a>
<a href="">
<img src="images/4.jpg" alt="">
</a>
<a href="">
<img src="images/5.jpg" alt="">
</a>
<a href="">
<img src="images/6.jpg" alt="">
</a>
<a href="">
<img src="images/7.jpg" alt="">
</a>
<a href="">
<img src="images/8.jpg" alt="">
</a>
<a href="">
<img src="images/9.jpg" alt="">
</a>
<a href="">
<img src="images/10.jpg" alt="">
</a>
</div>
</div>
</body>
</html>静水缘首页
文章分类
最新文章
- nodejs私钥加密公钥解密的一个例子
- uniapp和微信小程序判断程序运行在开发或者测试或者线上版本的方法分别是什么
- electron使用electron-builder打包后模块包含exe文件执行失败
- Compile is disallowed on the main thread, if the buffer size is larger than 4KB
- better-sqlite3简介及常用操作
- nodejs 操作数据库的库
- nodejs使用http-proxy库实现多个域名代理和同时代理websocket的例子,代理包含https和http两种协议
- iis配置反向代理
- javascript伪多线程代码
- ip所在地址段判断