让youtube.com加载到iFrame中 [英] Getting youtube.com to load in iFrame
本文介绍了让youtube.com加载到iFrame中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
无法取得Youtube的首页或任何其他youtube.com前缀网址加载到iFrame中。任何建议或见解?
Can't get Youtube's homepage, or any other youtube.com prefixed URL to load in an iFrame. Any suggestions or insights?
代码:
Code:
<iframe src="http://youtube.com" frameborder="0" width="1020" height="560"
horizontalscrolling="no" verticalscrolling="yes"></iframe>
推荐答案
Youtube不允许嵌入。只允许 http://www.youtube.com/embed/ *用于HTML5视频。
Youtube does not allow embedding. Only http://www.youtube.com/embed/* is allowed, which is for HTML5 videos.
这篇关于让youtube.com加载到iFrame中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文