开发者

img falls behind object(embedded youtube vid) with z-index attribute

开发者 https://www.devze.com 2023-01-31 21:56 出处:网络
Im trying to place a png image over an object element containing a youtube video here: <object> scripts...

Im trying to place a png image over an object element containing a youtube video

here:

<object>
scripts...
</object>

<img src='src' style='position:absolute;top:-10px;z-index:99;'/>

the position property is not applied to the object and yet once the embedded video loads, it overlaps the img. It doesn't push the img down, it just overlaps it.

solution?开发者_运维问答


I found the solution:

wmode="transparent"

0

精彩评论

暂无评论...
验证码 换一张
取 消