css:
.div1{height:30px; width:100%; background:#fff; position:relative; z-index:1;}
.div2{height:30px; width:100%; background:#f00; position:absolute; top:0px; left:0; z-index:2;}
html
<div class="div1"><div class="div2"></div></div>
DIV 完全覆盖在另一个DIV之上
猜你喜欢
转载自blog.csdn.net/mao_mao37/article/details/104613114
今日推荐
周排行