嵌入弹性视频ie8错误

时间:2013-06-17 09:19:48

标签: css internet-explorer-8 youtube embed

我正在尝试在IE8中修改youtube的嵌入视频,到目前为止没有结果。 该代码在Firefox上运行正常(没有错误或警告)和chrome也适用。

问题在于没有出现视频,没有“黑色窗口”......没什么......只是灰色。 IE8也不会返回任何错误或警告。

这是jsfiddle

<head>
<style type="text/css">
    .embed-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    padding-top: 30px;
    overflow: hidden;
}

.embed-container iframe,
.embed-container object,
.embed-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
</style>
</head>
<body>
<div class="embed-container">
    <object>
    <param name="movie" value="http://www.youtube.com/v/vRnT8hIxjqk?hl=pt_PT&amp;version=3&amp;rel=0"></param>
    <param name="allowFullScreen" value="true"></param>
    <param name="allowscriptaccess" value="always"></param>
    <embed src="http://www.youtube.com/v/vRnT8hIxjqk?hl=pt_PT&amp;version=3&amp;rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true"></embed>
    </object>
</div>
</body>

你能帮助我吗?

0 个答案:

没有答案