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

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

问题描述

在jQuery中使用javascript,我添加了一个带有youtube网址的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.

如果它不起作用请尝试这个,& amp; 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天全站免登陆