An alternative to the ancient “marquee” tag?

依然范特西╮ 提交于 2019-12-22 12:09:07

问题


What is the standard equivalent of the "marquee" tag?

I'm looking for a solution in HTML, C#, asp.NET or ASPX, jquery, java script


回答1:


The "marquee" tag was not included in the standard because it's a "visual" tag, not a "semantic" tag. As such, none of the languages that you want have an exact equivalent.

I suggest using Javascript to do animations on your webpage. (I hear that jQuery is a great framework to get started with.)

Note:

As someone pointed out in MSO chat, there is actually a jQuery plugin already written to do what you want. See then jQuery marquee plugin. Also, there is this demo from Remy Sharp.




回答2:


Technically, the standards equivalent is the CSS3 marquee module. (Technically because good luck finding a browser vendor that will ever actually implement it.)



来源:https://stackoverflow.com/questions/4854008/an-alternative-to-the-ancient-marquee-tag

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!