我尝试在 aspx 页面上嵌入 2 个单独的 YouTube 视频,但在第一个 iFrame 渲染后没有任何内容。我对 ASP.NET 比较陌生 - 所以如果这是一个简单的问题我很抱歉 - 我只是不知道问题是什么。
代码如下:
<p class="indent">
Watch a video showing how to email a report.
</p>
<p class="centerText">
<iframe type="text/html" width="640" height="385" src="http://www.youtube.com/embed/l8QSqhcnhf8" allowfullscreen frameborder="0" />
</p>
<br />
<p class="indent">
Watch a video showing how to create a web page.
</p>
<p class="centerText">
<iframe class="youtube-player" type="text/html" width="640" height="385" src="http://www.youtube.com/embed/35yKdLf5B3Y" allowfullscreen frameborder="0" />
</p>
最佳答案
更改为<iframe></iframe>
而不是 <iframe />
<p class="indent">
Watch a video showing how to email a report.
</p>
<p class="centerText">
<iframe type="text/html" width="640" height="385" src="http://www.youtube.com/embed/l8QSqhcnhf8" allowfullscreen frameborder="0" ></iframe>
</p>
<br />
<p class="indent">
Watch a video showing how to create a web page.
</p>
<p class="centerText">
<iframe class="youtube-player" type="text/html" width="640" height="385" src="http://www.youtube.com/embed/35yKdLf5B3Y" allowfullscreen frameborder="0" ></iframe>
</p>
关于asp.net - 在单个页面上嵌入多个 YouTube 视频,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23002641/