希望大家都好。我需要在我们公司的网站上建立一个页面,我们在那里放一些我们制作的视频。问题是,我似乎找不到一种方法让视频以全屏模式提供给访客。我已经实践了我找到的每一个解决方案,但似乎都不起作用。我做过:
<iframe allow="fullscreen;">
---
<iframe src="your_page_url"
allowfullscreen="allowfullscreen"
mozallowfullscreen="mozallowfullscreen"
msallowfullscreen="msallowfullscreen"
oallowfullscreen="oallowfullscreen"
webkitallowfullscreen="webkitallowfullscreen">
</iframe>
---
allowFullScreen="allowFullScreen" and frameBorder="0"
---
<iframe
id="player"
src="URL here"
allowfullscreen="true">
</iframe>
---
但这些都不起作用。。欢迎在这里提供任何帮助!
如果你想在iframe中添加youtube视频,这很容易。你只需要在src中添加iframe嵌入单词,就像一样
<iframe src="https://www.youtube.com/embed/watch?v=fbS2O4VETAo&t=2s" name="myFrame"></iframe>
youtube.com/embed/示例url 之后