问题描述
在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问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!