网站 example1.com 嵌入了 Youtube 视频。网站 example2.com 有一个显示 example1.com 的 iframe
。似乎由于 Youtube 政策,该视频可以从 example1.com 观看,但不能从 example2.com(在 iframe
内)观看。有没有办法让它工作?谢谢
最佳答案
我试过了,它成功了......
创建 a.html 并粘贴此代码
<iframe width="560" height="315" src="http://www.youtube.com/embed/m7dSteMFhZI" frameborder="0" allowfullscreen></iframe>
创建 b.html 并添加此代码
<iframe width="600" height="350" src="a.php" frameborder="0" allowfullscreen></iframe>
关于html - 在 iframe 中显示 Youtube 视频,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13636577/