IE-8 iframe and flash object ignores z-index?

后端 未结 3 1405
粉色の甜心
粉色の甜心 2021-01-13 12:38

I have the following divs and I\'m trying to make the iframe layer infront of my_flash. It\'s a common problem and I\'ve read through all the solutions I could find and sti

3条回答
  •  一整个雨季
    2021-01-13 12:52

    Unfortunately, z-index does not affect Flash Player. See this example: http://demos.learnswfobject.com/html-over-swf/dynamic.html (Related tutorial)

    In the example linked above, the parent element has position:"relative", and the HTML element has position:"absolute". The SWF doesn't need to have position specified. None of the elements has z-index specified. The SWF needs to have wmode set to either opaque or transparent. wmode:"opaque" is preferred to wmode:"transparent" as transparent is known to cause issues and use much more processing power than opaque.

    Try this:

    
    
    
    This will be replaced by SWFObject

提交回复
热议问题