Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
211 views
in Technique[技术] by (71.8m points)

html - Getting youtube.com to load in 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>
See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Youtube does not allow embedding. Only http://www.youtube.com/embed/* is allowed, which is for HTML5 videos.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...