FF4中有這個看似簡單的問題。
在下面的代碼中,我需要P1_child溢出(放置在上面)P2_child。 但是P1_child消失在P2後面(甚至沒有按照預期說到P2_child)FF4溢出和Z索引問題(孩子不會溢出另一個父母)
我是否缺少一些簡單的東西?
<div>
<div id="P1" style="position:relative; z-index: 21;">
<div id="P1_child" style="z-index: 2;"></div>
</div>
<div id="P2" style="position:relative; z-index: 21;">
<div id="P2_child" style="z-index: 1;"></div>
</div>
</div>
在此先感謝
測試它,你忘了包括代碼? – Jrod 2011-05-25 14:24:39
對不起,現在包括它。 – Pierre 2011-05-25 14:28:52
您的代碼適合我:http://jsfiddle.net/X8h7k/ – 2011-05-25 14:35:25