开发中遇到这样的问题:
两个完全独立的DIV ,上面的DIV有悬浮框A子元素,利用position定位,下面的DIV有悬浮框B子元素,也利用position定位,但是在ie6、7下B会挡住A,解决办法是利用hack对两个DIV对都做IE6/7的position定位,上面的DIV z-index属性比下面的大;
flash挡住定位的解决办法:
- Wrap your flash content in a div
- Add <param name=”wmode” value=”transparent”> to your object tag
- Set wmode=”transparent” in the embed tag
- Use css to set the position and z-index for your div (don’t set negative z-index values as it will make your flash disappear)
e:
<div id="flash">
<object .... >
<param name="wmode" value="transparent">
<embed .... wmode="transparent">
</object>
</div>
<object .... >
<param name="wmode" value="transparent">
<embed .... wmode="transparent">
</object>
</div>