Javascript ipad上的Youtube iframe无法覆盖
Javascript ipad上的Youtube iframe无法覆盖,javascript,ipad,iframe,youtube,Javascript,Ipad,Iframe,Youtube,.结束{ 宽度:50px;高度:50px; 背景:#fff; 位置:绝对位置; 左:600px; 排名:0; z指数:2147483638; 光标:指针; } $(“.close”).bind(“单击touchend”,函数(){ 警报(“”); }); 在ipad中打开JSFIDLE(仅限) 播放视频 试着点击白色按钮 结果:单击无效 PS不要告诉我关于wmode的事。在发布问题之前,我已经尝试了所有可能的值将wmode=transparent的参数添加到iframe中的srcurl中
.结束{
宽度:50px;高度:50px;
背景:#fff;
位置:绝对位置;
左:600px;
排名:0;
z指数:2147483638;
光标:指针;
}
$(“.close”).bind(“单击touchend”,函数(){
警报(“”);
});
PS不要告诉我关于wmode的事。在发布问题之前,我已经尝试了所有可能的值将
wmode=transparent
的参数添加到iframe中的src
url中
没有变化。在回答courseSorry问题之前,我已经尝试了所有的wmode类型,我应该更加警惕。我甚至不知道这在iPad上是否可行,因为它使用不同的编解码器,而不是Flash。
<iframe class="youtube-player" type="text/html" width="640" height="385" src="http://www.youtube.com/embed/FPCrhT0q5Ns?wmode=opaque" frameborder="0">
</iframe>
<a class="close"></a>
.close {
width: 50px; height: 50px;
background: #fff;
position: absolute;
left: 600px;
top: 0;
z-index: 2147483638;
cursor: pointer;
}
$(".close").bind("click touchend", function() {
alert("");
});