猛点这里返回我的博客

法则二:同辈元素同为动态定位时,且有z-index设置时,z-index值大者居上。

.div1{position.relative;z-index:2}
.div2{position.relative;z-index:1}