z-index does not work in Internet Explorer with pdf in iframe

后端 未结 4 1915
粉色の甜心
粉色の甜心 2020-11-27 12:40

I cannot get z-index working on a iframe that contains a pdf file with IE8. It works with Google Chrome.

Example (JSFiddle):

4条回答
  •  无人及你
    2020-11-27 12:46

    I Had been trying to fix the same issue and my scenario was similar. I was trying to render a youtube Video on my page and on top of the video i wanted to place some div with some information.

    But the youtube video being contained into an iframe wasn't letting me do that. Irrespective of the
    z-index that i gave to the elements.

    Then this post helped - https://stackoverflow.com/a/9074366/1484384

    Basically its about the wmode. Check the above post to see how to work with it.

    Here is some code from that post: