gpt4 book ai didi

javascript - beautifulphoto youtube 全屏无法使用

转载 作者:行者123 更新时间:2023-11-28 12:21:36 25 4
gpt4 key购买 nike

在我的页面中,我为 iframe 和 youtube 链接添加了 beautifulphoto。但现在问题是 YouTube 链接部分的全屏选项不起作用,据说“全屏不可用”,但如果我使用Lity - 轻量级响应式灯箱,则全屏工作。但由于 lity lightbox 对窗口大小有限制,我不使用。

HTML

<a href="http://xxxxx.com/video-popup/?vpid=46&amp;iframe=true&amp;width=600&amp;height=320" rel="prettyPhotov[iframes]" title=" Hotel Granvia Kyoto" class="flaticon-film51"></a>

JS

 $(".videoiteam a[rel^='prettyPhotov']").prettyPhoto({

overlay_gallery: false,

theme: 'dark_square',

social_tools: false,

slideshow:false,

show_title: false

});

附件是 enter image description here 的图片

最佳答案

尝试将 allowfullscreen 属性添加到 iframe_markup 属性:

$("a[rel^='prettyPhoto']").prettyPhoto({
overlay_gallery: false,
show_title: false,
hideflash: true,
social_tools: "",
iframe_markup: "<iframe src='{path}' width='{width}' height='{height}' frameborder='no' allowfullscreen='true'></iframe>",
deeplinking: false
});

.....

<a href="https://www.youtube.com/watch?v=Vh0mGLpbIvI" rel="prettyPhoto"><img src="http://img.youtube.com/vi/Vh0mGLpbIvI/default.jpg"></a>

关于javascript - beautifulphoto youtube 全屏无法使用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36759285/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com