Youtube iframe wmode 问题 [英] Youtube iframe wmode issue

查看:23
本文介绍了Youtube iframe wmode 问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用带有 jQ​​uery 的 javascript,我添加了一个带有 youtube url 的 iframe 以在网站上显示视频,但是从 youtube 加载到 iframe 中的嵌入代码没有 wmode="Opaque",因此页面显示在 YouTube 视频下方.

Using javascript with jQuery, I am adding an iframe with a youtube url to display a video on a website however the embed code that gets loaded in the iframe from youtube doesnt have wmode="Opaque", therefore the modal boxes on the page are shown beneath the youtube video.

有什么想法可以解决这个问题吗?

Any ideas how to solve the issue?

推荐答案

尝试添加 ?wmode=opaque 到 URL 或 &wmode=opaque 如果已经有一个参数.

Try adding ?wmode=opaque to the URL or &wmode=opaque if there already is a parameter.

如果它不起作用,试试这个,&wmode=transparent 也可以在 IE 浏览器中工作.

If it doesn't work try this instead, &wmode=transparent which will work in IE browser as well.

这篇关于Youtube iframe wmode 问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆