然后给父级盒子设置position: relative给子级的箭头盒子设置position: absolute
例如:
<div class="box">
<div class="box-img">
<img src="images/a001.png"/>
</div>
<div class="box-jt">
<img src="images/箭头.png"/>
</div>
</div>
.box{
width:80%
margin:0 auto
position: relative
}
.box-img{
width:100%
}
.auto-img{
width:100%
display: block
}
.box-jt{
width:80px
position: absolute
top:50%
left:50%
transform: translate(-50%, -50%)
}