42
4

14 回答 14

49

<marquee behavior=scroll direction="left" scrollamount="5">Your message here</marquee>

scrollamount controls the speed of text: higher the value higher is the scrolling speed

于 2011-07-12T08:49:58.280 回答
31

我们可以通过使用scrollamount属性来控制滚动速度,

例子:

<marquee scrollamount="30">scrolling fast</marquee>
<marquee scrollamount="2">scrolling slow</marquee>

注意:如果指定最小数量,滚动速度会降低,反之亦然

于 2013-09-29T05:57:23.503 回答
9

此属性花费的时间以毫秒为单位。

延迟:100 毫秒

<marquee scrolldelay="100">Scrolling text</marquee>

延迟:400 毫秒

<marquee scrolldelay="400">Scrolling text</marquee>
于 2015-11-29T08:39:15.783 回答
7

没有专门的属性来控制它。无论如何,Marquee 并不是一个高度可靠的标签。您可能需要考虑使用 jQuery 和 .animate() 函数。如果您有兴趣追求该途径并需要代码,请告诉我。

于 2010-11-19T17:08:48.957 回答
5

您可以使用scrollamount属性更改选取框标签的速度。

它接受整数值 6 作为默认速度,因此任何低于 6 的值都会减慢选取框效果。

例子 :

<marquee scrollamount=4>Scrolling text</marquee>

阅读更多:http ://code2care.org/pages/marquee-tag-scrollamount/

http://www.htmlcodetutorial.com/_MARQUEE_SCROLLAMOUNT.html

PS:避免使用选框!

于 2015-02-02T08:30:47.857 回答
4

scrolldelay="number"

于 2010-11-19T17:05:48.013 回答
4

您可以通过添加滚动延迟来更改速度

<marquee style="font-family: lato; color: #FFFFFF" bgcolor="#00224f" scrolldelay="400">Now the Speed is Delay to 400 Milliseconds</marquee>

于 2018-06-15T11:22:45.563 回答
4

为了提高选框文本的速度,您只需要在下面的代码中添加这样的内容:

<marquee scrollamount="Integer number">scrolling fast</marquee>
于 2018-10-25T12:04:40.053 回答
2

提高文本使用属性的滚动速度

scrollamount
OR
scrolldelay

在“选框”标签中。放置任何整数值,表示您需要文本移动的速度

于 2019-08-02T15:07:07.237 回答
1

我只是做:

<marquee scrollamount="A number">Text here</marquee>
于 2020-08-30T21:37:34.763 回答
1

<marquee scrollamount="1">SLOW TEXT</marquee>
<marquee>DEFAULT SPEED TEXT</marquee>
<marquee scrollamount="10">FAST TEXT</marquee>
<marquee scrollamount="20">Faster text</marquee>

于 2021-06-17T04:17:43.077 回答
1

使用带有整数的滚动量:滚动量值越高,文本越快。

<marquee scrollamount="1">SLOW TEXT</marquee>
<marquee>DEFAULT SPEED TEXT</marquee>
<marquee scrollamount="10">FAST TEXT</marquee>
<marquee scrollamount="20">Faster text</marquee>

默认滚动速度为 6。

<marquee>Text</marquee>
<marquee scrollamount="6">Text</marquee>
<marquee scrollamount="30">Quick text</marquee>
<marquee scrollamount="90">Very Quick text</marquee>

于 2021-06-01T22:05:45.467 回答
0
         <body>
         <marquee direction="left" behavior=scroll scrollamount="2">This is basic example of marquee</marquee>
         <marquee direction="up">The direction of text will be from bottom to top.</marquee>
         </body>

使用滚动量来控制速度..

于 2015-09-05T04:35:53.637 回答
-1

在 HTML5 上,滚动量和滚动延迟属性不起作用。它们是贬义的属性。

于 2018-11-07T17:02:35.987 回答