官网效果图
为了实现效果如上图,以下做了一个测试样例。
测试代码
<!DOCTYPE html>
<html lang="en">
<head>
<title></title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<style>
.box {
width: 400px;
height: 400px;
background: rgb(196, 199, 255);
position: relative;
display: flex;
justify-content: center;
align-items: center;
}
.box1 {
width: 400px;
height: 400px;
background: yellow;
position: absolute;
}
.box2 {
width: 200px;
height: 200px;
background: pink;
position: absolute;
}
</style>
</head>
<body>
<div class="box">
<div class="box1">底部轮播图</div>
<div class="box2">显示内容</div>
</div>
</body>
</html>
样例效果图