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

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

问题描述

我有一个表单,它被放入网页中。完成表单后,YouTube视频会显示使用iframe嵌入。



当我进入YouTube视频的全屏模式时,没有任何事情发生。



嵌套iframe的全屏限制了父iframe的大小吗?

添加allowfullscreen =allowfullscreen并更改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.

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

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

解决方案

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

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

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