html – 为什么我的嵌入式YouTube视频在Firefox中运行,而不是在Internet Explorer中运行?

前端之家收集整理的这篇文章主要介绍了html – 为什么我的嵌入式YouTube视频在Firefox中运行,而不是在Internet Explorer中运行?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我正在使用以下代码显示YouTube视频.
<object width="425" height="344">
    <param name="movie" 
           value="**URL**">
    </param>
    <param name="allowFullScreen" 
           value="true">
    </param>
    <embed src="**URL**" 
           type="application/xshockwave-flash" 
           allowfullscreen="true" 
           width="425"
           height="344">
    </embed>
</object>

它适用于Firefox,但为什么不在Internet Explorer中呢?

我是一个全新的网络开发人员,所以我遇到了你退伍军人习惯的所有这些奇妙的不一致;)

解决方法

试试这个:
<object type="application/x-shockwave-flash" data="VID_URL" width="425" height="344">
    <param name="movie" value="VID_URL" />
</object>
原文链接:https://www.f2er.com/html/225962.html

猜你在找的HTML相关文章