所有浏览器都支持选取框HTML元素吗? [英] Is the marquee HTML element supported by all browsers yet?

查看:166
本文介绍了所有浏览器都支持选取框HTML元素吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使用< marquee> HTML元素?我的意思是,它是否支持所有浏览器?我知道Twitter正在使用它,我认为这对公告非常有用,我想使用它,但我不知道它是否能正常工作。有人知道吗?

解决方案

不,它是 DEPRECATED 由W3C提供。

祝你好运!

编辑:



另一个选择框是将整个字符串显示在span或div中,以获得可访问性。



编辑2:



我不能确定,但​​乍一看,twitter并没有使用它,但即使他们使用它(他们不应该)你不应该效仿他们的坏榜样,他们也会犯错误! :)

EDIT3:



你说它适用于所有浏览器,虽然这可能是真实的,因为现代浏览器尽可能兼容,但你应该认为遵守标准是一种很好的纪律。

为什么?原因很多:例如,移动浏览器(每天更流行)没有像FF Chrome和IE等桌面浏览器那样备用内存,并且它们可能无法正确显示玩具内容。



EDIT4:



我刚才说你在谈论移动热门话题,我真的为德拉感到遗憾,为了完整起见,这里有一个例子:

演示:

http://remysharp.com/demo/marquee.html



来源:

>

http:// remysharp.com/2008/09/10/the-silky-smooth-marquee/


Is it all right to use <marquee> HTML element yet? I mean, is it supported by all browsers yet? I know Twitter is using it, I think it's quite good for announcements and I'd like to use it, but I don't know if it will work properly yet. Does anyone know?

解决方案

No, it was DEPRECATED by the W3C.

Good luck!

EDIT:

An alternative for marquee would be to display the whole string in a span or div, for accessibility.

EDIT2:

I can't be sure but at the first glance, twitter isn't using it, BUT even if they used it (which they shouldn't) you should not follow their bad example, they can make mistakes too! :)

EDIT3:

You say it works in all browsers, while this may be true, because modern browsers try to be as compatible as possible, but you should consider that that it is good discipline to always go along with the standards.

Why? A lot of reasons: for example, the mobile browser (every day more popular) don't have the memory to spare as desktop browsers like FF Chrome and IE and they might not display toy content correctly.

EDIT4:

I just got that you were talking about "moving" trending topics, I´m really sorry for the dela, for completeness sake, here is one example:

Demo:

http://remysharp.com/demo/marquee.html

Source:

http://remysharp.com/2008/09/10/the-silky-smooth-marquee/

这篇关于所有浏览器都支持选取框HTML元素吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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