61,111
社区成员
发帖
与我相关
我的任务
分享
.aaa {background:url(../aaa.jpg);width: 100px;height: 100px;position: relative;}/**背景图片这里背景容器要写成相对位置*/
.bbb {background:url(../bbb.jpg);width: 10px;height: 10px;position:absolute;top:30px;left: 325px;}/**挡在前边的图,这里要是用相对位置我标红了*/
<div class="aaa" >
<div class="bbb" ></div>
</div>
具体图片的高度宽度,你根据你的实际图片大小改一改就行了!