1. 程式人生 > >IE7 設定z-index的覆蓋問題

IE7 設定z-index的覆蓋問題

<div style="position:relative;z-index:2;"> 
<div style="position:absolute;z-index:100;width:100px;height:100px;background:red;"></div> 
</div> 
<div style="position:relative;z-index:1;"> 
<div style="position:absolute;z-index:10;width:20px;height:20px;background:black;"></div> 

</div>