哪些浏览器支持< embed>和< object>标签? [英] Which browsers support the <embed> and <object> tags?

查看:357
本文介绍了哪些浏览器支持< embed>和< object>标签?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在部门网站上工作,需要符合标准(xhtml 1.0过渡),但嵌入式闪存不断打破验证。我们使用< embed> 标记,因为我们需要支持大多数主流浏览器。



我们不能使用外部工具,因为该网站是通过系统管理,管理员不喜欢我们把额外的工具(如JavaScript库等),可能会干扰他们的模板引擎。



< object> 标签并且一并移除< embed> 标签是否安全? / p>

解决方案

<嵌入> 是在XHTML 1.0和HTML 4无效,但它的在HTML5 <有效/ a>,所以你可以切换到HTML5的文档类型,而不是符合标准。



如上所述,闪光沙爹在一个列表文章除了是如何让Flash中只是一个<工作一个很好的解释;对象> ; 标签。它不是那么多的浏览器支持< object> (我认为只有Netscape 4没有),更多的是 浏览器支持使用< object> 嵌入Flash的所有东西。

绝对读过这篇文章。它有你可以使用的代码和一切。简而言之,< object> 本身就可以正常工作,除非您想要Flash电影在完全下载之前开始播放。然后,你需要另一个Flash电影作为包装。


I am working on a department website that needs to be standards compliant (xhtml 1.0 transitional), but embedded flash keeps breaking the validation. We use the <embed> tag because we need to support most major browsers.

We can't use external tools, since the site is managed through a system and the admins don't like us putting extra tools (like JavaScript libraries etc) that could interfere with their template engine.

How widely supported is the object tag? Is it safe to use only the <object> tag and remove the <embed> tag all together?

解决方案

<embed> is invalid in XHTML 1.0 and HTML 4, but it’s valid in HTML5, so you could switch to the HTML5 doctype and be compliant with that standard instead.

As mentioned above, the Flash Satay article at A List Apart is a great explanation of how to get Flash working with just an <object> tag. It’s not so much which browsers support <object> (I think only Netscape 4 doesn’t), it’s more that the differences in how the browsers support Flash embedded with <object> screw everything up.

Definitely read the article. It’s got code you can use and everything. In short, <object> on its own works fine, unless you want a Flash movie to start playing before it’s fully downloaded. Then you need another Flash movie to act as a wrapper.

这篇关于哪些浏览器支持&lt; embed&gt;和&lt; object&gt;标签?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆