gpt4 book ai didi

iphone - 新的 YouTube iframe 代码无法在 iPhone 上显示视频

转载 作者:行者123 更新时间:2023-12-03 19:33:21 26 4
gpt4 key购买 nike

我们在新闻网站中添加了新的 YouTube iframe 代码。问题是视频没有出现在 iPhone 上。

这是我的 page和代码:

<iframe width="620" height="390" src="http://www.youtube.com/v/A2V1WTF8tp4?hl=en&fs=1&autoplay=0&hd=1" frameborder="0" allowfullscreen="true"></iframe>

如何让 YouTube 视频显示在 iPhone 上?

最佳答案

视频的 URL 可能有问题。嵌入视频代码如下

<iframe class="youtube-player" type="text/html" width="640" height="385" src="http://www.youtube.com/embed/VIDEO_ID" frameborder="0">
</iframe>

请注意 URL 如何使用 embed 而不是 v

关于iphone - 新的 YouTube iframe 代码无法在 iPhone 上显示视频,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6233464/

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