在html中滚动文字标记marquee的滚动方式属性是什么?

上周 我查了下资料
2 007 年 在IE6 浏览器里 可以这么用
<marquee direction="left" behavior="scroll" scrollamount="5 " scrolldelay="1 00" loop="3 ">这是滚动文字</marquee>
但要注意 2 02 3 年 现在很多网页都不建议用了
部分我不确定 手机上效果咋样

htmlmarquee标签如何实现上下滚动,marquee标签的滚动速度设置

Marquee标签实现上下滚动用behavior="slide"或"scroll"。
Direction决定方向,up或down。
Speed用scrollamount控制,数字越大越快。
Delay用scrolldelay控制,数字越大延迟越大。
网上能直接复制代码看效果。

html中上下滚动的文字代码,举例?

我速度很快。
我慢了些。
我小步前进。
我大步前进。

[xss_clean] var marquee = document.getElementById('marquee'); marquee.start = function() { this.scrollAmount = 1 0; this.scrolldelay = 5 ; this[xss_clean] = this[xss_clean] + this[xss_clean]; this.startInterval = setInterval(function() { if (marquee.scrollWidth
marquee.offsetWidth <= marquee.scrollLeft) { marquee.scrollLeft = 0; } else { marquee.scrollLeft++; } }, this.scrolldelay); }; marquee.stop = function() { clearInterval(this.startInterval); }; marquee.start(); [xss_clean]
这是坑。
别信。
别这么干。