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

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

问题描述

我正在处理一个需要符合标准(xhtml 1.0 过渡)的部门网站,但嵌入式闪存不断破坏验证.我们使用 标签是因为我们需要支持大多数主流浏览器.

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.

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

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?

推荐答案

在 XHTML 1.0 和 HTML 4 中无效,但它是 在 HTML5 中有效,因此您可以切换到 HTML5 文档类型和而是符合该标准.

<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.

如上所述,A List Apart 上的 Flash Satay 文章是一个很好的解释如何让 Flash 使用 标签工作.与其说哪些浏览器支持 (我认为只有 Netscape 4 不支持),更多的是浏览器在如何支持嵌入了 把一切都搞砸了.

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.

一定要阅读这篇文章.它有你可以使用的代码和一切.简而言之, 本身就可以正常工作,除非您希望 Flash 电影在完全下载之前开始播放.然后您需要另一部 Flash 影片作为包装器.

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;对象&gt;标签?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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