IE 对象标记替代内容不显示
我使用 xhtml 有效方式嵌入如下:
<object type="application/x-shockwave-flash" width="640" height="360" data="youtube-video-url">
<param name="movie" value="youtube-video-url" />
<param name="allscriptaccess" value="always" />
<p>Adobe Flash is required to view this content. Please <a href="http://www.adobe.com/go/getflashplayer">download Flash Player</a>.</p>
</object>
当我在没有安装 Flash 的 IE 中查看它时,我只是得到一个黑框,没有替代内容。如果我取出 type="application/x-shockwave-flash" 属性,则会出现替代内容。指定类型属性后,为什么不显示替代内容?如何更正此问题?
I am using the xhtml valid way to embed below:
<object type="application/x-shockwave-flash" width="640" height="360" data="youtube-video-url">
<param name="movie" value="youtube-video-url" />
<param name="allscriptaccess" value="always" />
<p>Adobe Flash is required to view this content. Please <a href="http://www.adobe.com/go/getflashplayer">download Flash Player</a>.</p>
</object>
When I view it in IE without flash installed, I just get a black box and no alternate content. If I take out the type="application/x-shockwave-flash" attribute, the alternate content will appear. Why is it not showing the alternate content when the type attribute is specified and how do I correct this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
IE 不支持对象元素的回退。你所描述的应该会发生,但 IE 很好,IE。如果您确实喜欢后备方案,则可以使用 SWFObject 来嵌入 Flash。
IE doesn't support fallback of the object element. What you describe should happen but IE is well, IE. You could use SWFObject to embed the flash if you really like a fallback.
尝试从标签中删除数据参数。它会这样工作。然后如果你把它放回去,你会发现你可能无法重现这个问题。另外,尝试仅删除和使用数据。你会发现这些可能性很有趣。
Try removing the data parameter from the tag. It will work that way. Then if you put it back, you will notice that you might not be able to reproduce this issue. Also, try removing and using only data. You will find the possibilities interesting.
我从来没有找到解决这个问题的方法。仅当类型设置为“application/x-shockwave-flash”时,才会在 Windows XP 中发生。
I never did find a solution to this problem. It only happened in Windows XP when the type was set to "application/x-shockwave-flash".