1 回答
繁星coding
TA贡献1797条经验 获得超4个赞
先上图,不知道是不是你要的效果
<head>
<style>
.div1 {
width: 100px;
height: 100px;
position: absolute;
display: flex;
justify-content: center;
}
.img1{
position: relative;
width: 70px;
height: 70px;
background: #f00;
}
.img2{
position: relative;
width: 50px;
height: 50px;
background: #0f0;
}
.img3{
position: relative;
width: 30px;
height: 30px;
background: #00f;
}
.img2 {
position:
}
</style>
</head>
<body>
<div class="div1">
<div class="img1"></div>
</div>
<div class="div1">
<div class="img2"></div>
</div>
<div class="div1">
<div class="img3"></div>
</div>
</body>
添加回答
举报
0/150
提交
取消