0

我想使用iFrame以下方式显示视频:

<tr>
            <td class="style3" style="width: 50%">
            </td>
            <td class="style3" style="width: 50%">

               <iframe id="frame1" src="http://www.youtube.com/watch?v=3Kk-yZ7VpeA" runat="server" style="height: 222px; width: 482px"  ></iframe>

            </td>
        </tr>

但它不能在运行时运行。我缺少什么特定代码或代码是否有任何错误。感谢您的帮助。

4

2 回答 2

1

对于 youtube 视频,您必须在 iframe 中使用以下嵌入链接:

http://www.youtube.com/embed/#VIDEO_ID#

所以会是

src="http://www.youtube.com/embed/3Kk-yZ7VpeA"

另见http://jsfiddle.net/QsQEP/

于 2012-09-27T09:21:06.607 回答
0

现在它的工作..我已经改变了网址并开始工作。不知道基本是什么问题。总之谢谢

于 2012-09-27T09:21:40.423 回答