Windows Media Player on top other DIV

后端 未结 5 701
清歌不尽
清歌不尽 2020-12-20 04:05

I have an embed window media player which is always on top of other DIV tags. I used wmode = opaque; WindowlessVideo = -1 but it does not help. Does anyone know how to make

相关标签:
5条回答
  • 2020-12-20 04:12

    The person above is right about z-index, but you don't want position absolute unless there is a relative container div, and even then, position relative will work for you just fine and will allow the object to continue to interact with the layer in terms of pushing things down that are below it and so forth. Position absolute is only good inside of a fixed height container where the height of the elements inside it arent used to push the content of the page down - headers and footers, that sort of thing.

    Also, with positioning, it's best practice to position all siblings and their parent. In other words, wherever you start positioning for the purpose of using z-index on something inside, you should position and z-index all sibling elements inside there. It's cleaner and easier to see what's going on when you do.

    PS - Option select boxes have similar problems obeying normal z-index rules as well.

    0 讨论(0)
  • 2020-12-20 04:14

    I had the same issue and resolved it thusly:

    <param name="windowlessVideo" value="true">
    

    Using "-1" for a boolean value may or may not work as expected.

    0 讨论(0)
  • 2020-12-20 04:24

    I have had a similar experience doing the same thing with *.swf objects. I'm uncertain whether the same solution will work here, but it's worth a shot. When defining z-index, you also have to designate position: absolute for the div that the object tag sits in.

    0 讨论(0)
  • 2020-12-20 04:25
    <param name="windowlessVideo" value="true">
    

    This work perfactly.

    Thanks

    0 讨论(0)
  • 2020-12-20 04:31

    What worked for me was putting the Z-index to -1 this part of code u need to change

    0 讨论(0)
提交回复
热议问题