要实现点击地图中的marker,依次出现如下图所示的直播视频布局,代码如下
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>flex运用</title>
</head>
<style>
.flex{
position: absolute;
right:0;
display: flex;
height:310px;
flex-direction: column;
flex-wrap: wrap-reverse;
/* align-content: flex-start */
}
.content{
width:100px;
height: 100px;
border:1px solid #ddd;
display:flex;
justify-content:center;
align-items: center;
}
</style>
<body>
<div id="box">
<div class="flex">
<div class="content">1</div>
<div class="content">2</div>
<div class="content">3</div>
<div class="content">4</div>
<div class="content">5</div>
<div class="content">6</div>
</div>
</div>
</body>
</html>
有蝉 发布了178 篇原创文章 · 获赞 23 · 访问量 8万+ 私信 关注