当前位置: 代码迷 >> HTML/CSS >> 怎么在html让图片重叠
  详细解决方案

怎么在html让图片重叠

热度:46   发布时间:2012-03-23 12:06:21.0
如何在html让图片重叠?
要求A图片在下面,B图片在上面,B能够覆盖A,最好能提供代码

谢谢各位高手了

------解决方案--------------------
<div style= "position:absolute;z-index:1;left:10px;top:10px; "> <img src= "a.gif " width= "100 " height= "100 "> </div>
<div style= "position:absolute;z-index:2;left:60px;top:60px; "> <img src= "b.gif " width= "100 " height= "100 "> </div>
  相关解决方案