YouTube iframe 嵌入 - 全屏 [英] YouTube iframe embed - full screen

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

问题描述

我有一个嵌入网页的表单.完成表单后,将使用 iframe 嵌入显示 YouTube 视频.

I have a form that is iframed into a web page. Upon completion of the form, a YouTube video is displayed from using iframe embed.

当我进入 YouTube 视频的全屏模式时,什么也没有发生.

When I enter full screen mode of the YouTube video, nothing really happens.

嵌套 iframe 的全屏是否受父 iframe 的尺寸限制?

Is the fullscreen of the nested iframe constrained by the dimensions of the parent iframe?

推荐答案

添加 allowfullscreen="allowfullscreen" 并更改 YouTube 嵌入的类型解决了我的问题.

Adding allowfullscreen="allowfullscreen" and altering the type of YouTube embed fixed my issue.

这篇关于YouTube iframe 嵌入 - 全屏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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