开发者

DIV overlay YouTube embed code

开发者 https://www.devze.com 2023-03-08 00:34 出处:网络
I have an iframe inside a DIV and I would like to make the div draggable using jquery.I\'ve found that I can accomplish this if I absolute position both the DIV and Iframe and set the Z-index of the D

I have an iframe inside a DIV and I would like to make the div draggable using jquery. I've found that I can accomplish this if I absolute position both the DIV and Iframe and set the Z-index of the DIV higher than the iframe (I understand the content underneath is now inaccessible).

Is there a way to achieve the same with the YouTube embed c开发者_JAVA百科ode? What's happening is that as the player is flash it's appearing infront of the DIV and ignoring the z-index.

All help appreciated.

Regards


Just add the parameter wmode=transparent to the embed code:

Possible duplicate and solution here overlay opaque div over youtube iframe

0

精彩评论

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