开发者

DIV overlay YouTube embed code

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜