页面赢了显示来自youtube的视频

时间:2014-02-14 08:20:03

标签: html css

为什么我看不到视频,它只是显示一个空白区域。 (我编辑了视频的链接) 如果我检查youtube上的视频就可以了。

如果我右键单击白色空间,它会显示“未加载电影”,但即使我等待也不会发生任何事情。我还在网站的ftp上传了视频,我可以从那里加载吗?怎么样?

<html>
<head>
<title></title>
</head>
<body style="margin:0px auto; text-align:center; color:white;" >

<div id="container" style="margin:0; padding:0; text-align:center;" >

<div id="main" style="width:100%;margin:0px auto;">
        <div id="hdr" style="background-image:url(bg.jpg);float:left;width:100%;height:110px;">
        </div>
        <div id="hdr2" style="background-image:url(fascia.png);float:left;width:100%;height:70px;">
            footer
        </div>
        <div id="bdy" style="background-image:url(bg.jpg);float:left;width:100%;height:70px;">
            body
        </div>
        <div id="ftr" style="background-image:url(bg.jpg);float:left;width:100%;height:500px;">

<object width="640" height="360"><param name="movie" value="//www.youtube.com/v/xxxxxxxxx"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="//www.youtube.com/v/xxxxxxxxx" type="application/x-shockwave-flash" width="640" height="360" allowscriptaccess="always" allowfullscreen="true"></embed></object>

        </div>
        <div id="ftr2" style="background-image:url(bg.jpg);float:left;width:100%;height:280px;">
        </div>

    </div>

</div>

</body>
</html>

1 个答案:

答案 0 :(得分:0)

使用此:

<iframe width="640" height="360"
src="http://www.youtube.com/embed/XGSy3_Czz8k">
</iframe>

希望这有帮助!