问题
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