Ash*_*and 40
<marquee behavior=scroll direction="left" scrollamount="5">Your message here</marquee>
Run Code Online (Sandbox Code Playgroud)
scrollamount控制文本的速度:值越高,滚动速度越高
小智 26
我们可以通过使用scrollamount属性来控制滚动速度,
例:
<marquee scrollamount="30">scrolling fast</marquee>
<marquee scrollamount="2">scrolling slow</marquee>
Run Code Online (Sandbox Code Playgroud)
注意:如果指定最小数量,则滚动速度将减小,反之亦然
此属性占用时间(以毫秒为单位).
延迟:100毫秒
<marquee scrolldelay="100">Scrolling text</marquee>
Run Code Online (Sandbox Code Playgroud)
延迟:400毫秒
<marquee scrolldelay="400">Scrolling text</marquee>
Run Code Online (Sandbox Code Playgroud)
没有具体的属性来控制它.无论如何,Marquee不是一个高度可靠的标签.您可能需要考虑使用jQuery和.animate()函数.如果您有兴趣追求该途径并需要代码,请告诉我.
小智 5
您可以使用scrollamount属性更改选取框标记的速度。
它接受整数值 6 作为默认速度,因此任何低于 6 的值都会减慢选取框效果。
例子 :
<marquee scrollamount=4>Scrolling text</marquee>
Run Code Online (Sandbox Code Playgroud)
阅读更多:http : //code2care.org/pages/marquee-tag-scrollamount/
http://www.htmlcodetutorial.com/_MARQUEE_SCROLLAMOUNT.html
PS:避免使用选框!
scrolldelay="number"