div+css怎么不让大图遮住小图,我的大图是有JS自动轮播效果的。
3个回答
展开全部
你是想让一张小图飘在JS动画上的?
.waikuang{position:relative; width:800px; height:400px;}
.slider{width:800px; height:400px;}
.smallpic{position:absolute; z-index:500; left:100; top:50;}
<div class="waikuang">
<div class="slider">JS动画</div>
<div class="smallpic"><img src="images/smallpic.jpg"></div>
</div>
.waikuang{position:relative; width:800px; height:400px;}
.slider{width:800px; height:400px;}
.smallpic{position:absolute; z-index:500; left:100; top:50;}
<div class="waikuang">
<div class="slider">JS动画</div>
<div class="smallpic"><img src="images/smallpic.jpg"></div>
</div>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询