我想用html显示youtube视频。为此,我正在使用iframe。但是iframe之后的内容没有显示。
这是我的HTML代码
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Title of the document</title>
</head>
<body>
<p>Content of the document......</p>
<h3>1 Microsoft And Google Collaborate On Angular 2 Framework, TypeScript Language</h3><div><p><span class="embed-youtube"><iframe class="youtube-player" type="text/html" width="640" height="390" src="http://www.youtube.com/embed/videoseries?list=PLOETEcp3DkCoNnlhE-7fovYvqwVPrRiY7&hl=en_US" frameborder="0" allowfullscreen="true"/></span></p></div>
<p>END END</p>
</body>
</html>
在这段代码中,“END END”未在youtube iframe之后显示
最佳答案
您需要正确关闭iframe
标记。目前您关闭它
内联,但这不是正确的方法。做:
<iframe ..></iframe>
关于html - youtube iframe之后的内容未显示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28897385/