目前我的情况是,我想使用 iframe 在网页中显示一些视频。然而,它只显示1个视频而不是10个。我不确定这里出了什么问题,但当我将第1个 iframe src =“...”的相同链接放入时第二个iframe src =“...”视频会显示出来。 Fyi,我也尝试使用对象和嵌入,但这两个似乎都不起作用。这是youtube或其他什么问题?以下是我的代码。这是我的代码。谢谢。 :)
<div class="box text-shadow">
<table class="demo-tbl"><!--<item>1</item>-->
<tr class="tbl-item"><!--<img/>-->
<td class=""><iframe width="250" height="250" src="https://www.youtube.com/embed/Nn2eWc4PxhM" frameborder="0" allowfullscreen>
</iframe></td>
<!--<data></data>-->
<td class="td-block"><p class="date">03/15/2012</p>
<p class="title">Arch</p>
<p class="desc">An arch is a structure that spans a space and
supports a load. Arches appeared as early as the 2nd millennium
BC in Mesopotamian brick architecture and their systematic use
started with the Ancient Romans who were the first to apply the
technique to a wide range of structures.</p>
<p class="like">5 Likes</p></td>
</tr>
<!--<item>2</item>-->
<tr class="tbl-item"><!--<img/>-->
<td class=""><iframe width="250" height="250" src="https://www.youtube.com/watch?v=ijxB1NBvLEc" frameborder="0" allowfullscreen></iframe></td>
<!--<data></data>-->
<td class="td-block"><p class="date">03/18/2012</p>
<p class="title">Architecture</p>
<p class="desc">Architecture is both the process and product of
planning, designing and construction. Architectural works, in
the material form of buildings, are often perceived as cultural
symbols and as works of art. Historical civilizations are often
identified with their surviving architectural achievements.</p>
<p class="like">25 Likes</p></td>
</tr>
<!--<item>3</item>-->
<tr class="tbl-item"><!--<img/>-->
<td class=""><iframe width="250" height="250" src="https://www.youtube.com/watch?v=X-8T7707U4w" frameborder="0" allowfullscreen>
</iframe></td>
<!--<data></data>-->
<td class="td-block"><p class="date">01/16/2011</p>
<p class="title">Autumn</p>
<p class="desc">Autumn or Fall is one of the four temperate seasons.
Autumn marks the transition from summer into winter, in
September (Northern Hemisphere) or March (Southern Hemisphere)
when the arrival of night becomes noticeably earlier. The
equinoxes might be expected to be in the middle of their
respective seasons, but temperature lag (caused by the thermal
latency of the ground and sea) means that seasons appear later
than dates calculated from a purely astronomical
perspective.</p>
<p class="like">12 Likes</p></td>
</tr>
</table>
</div>
答案 0 :(得分:0)
首先,您的第一个结束</iframe>
代码中有拼写错误,请检查您的代码,编写</iframe
,而不是&#34; >
&#34;。其次,请注意你如何使用&#34;嵌入&#34;链接在你的第一个iframe但是&#34; watch&#34;链接在第二和第三?用嵌入来改变它,你很高兴。演示:http://jsfiddle.net/qrqL8tj2/1/
示例链接:
https://www.youtube.com/embed/Nn2eWc4PxhM
答案 1 :(得分:0)
检查你的src。您提供的来源不正确。你的src格式应为&gt; https://www.youtube.com/embed/PQgWnRe9trwcopy youtube嵌入选项所需的链接。