是否可以更改 HTML 的的速度?标签?

发布于 2024-10-03 21:48:50 字数 55 浏览 3 评论 0原文

当一个选取框离开屏幕时,经过一小段时间的间隙,它会从另一侧进入。 有什么办法可以减少这个时间吗?

When one marquee leaves the screen then after a short time gap it enters from another side.
Is there any way to reduce this time?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(14

狼性发作 2024-10-10 21:48:50
<marquee behavior=scroll direction="left" scrollamount="5">Your message here</marquee>

滚动量控制文本的速度:值越大滚动速度越高

<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

听闻余生 2024-10-10 21:48:50

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

示例:

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

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

we can control the scrolling speed by using the scrollamount attribute,

Example:

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

note:if you specify the minimum number, the scrolling speed will be reduce vice versa

删除→记忆 2024-10-10 21:48:50

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

延迟:100 毫秒

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

延迟:400 毫秒

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

This attribute takes the time in milliseconds.

Delay : 100 Milliseconds

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

Delay : 400 Milliseconds

<marquee scrolldelay="400">Scrolling text</marquee>
剪不断理还乱 2024-10-10 21:48:50

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

There isn't specifically an attribute to control that. Marquee isn't a highly reliable tag anyways. You may want to consider using jQuery and the .animate() function. If you are interested in pursuing that avenue and need code for it, just let me know.

著墨染雨君画夕 2024-10-10 21:48:50

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

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

示例:

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

阅读更多内容:http://code2care.org/pages/marquee-tag-scrollamount/< /a>

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

PS:避免使用字幕!

You can change the speed of marquee tag using scrollamount attribute.

It accepts integer values 6 being the default speed, so any value lower then 6 will slow down the marquee effect.

Example :

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

Read more : http://code2care.org/pages/marquee-tag-scrollamount/

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

P.S : Avoid using marquee!

芸娘子的小脾气 2024-10-10 21:48:50

scrolldelay=“数字”

scrolldelay="number"

半衾梦 2024-10-10 21:48:50

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

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

You can Change the speed by adding scrolldelay

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

手长情犹 2024-10-10 21:48:50

为了提高字幕文本的速度,您只需在下面的代码中添加如下内容:

<marquee scrollamount="Integer number">scrolling fast</marquee>

In Order to increase speed of your Marquee text you just need to add like this in your code below:

<marquee scrollamount="Integer number">scrolling fast</marquee>
以往的大感动 2024-10-10 21:48:50

要提高文本的滚动速度,请使用

scrollamount
OR
scrolldelay

“marquee”标签中的属性。放置任何代表您需要文本移动速度的整数值

To increase scroll speed of text use attribute

scrollamount
OR
scrolldelay

in the 'marquee' tag. place any integer value which represent how fast you need your text to move

疯到世界奔溃 2024-10-10 21:48:50

我只是这样做:

<marquee scrollamount="A number">Text here</marquee>

I just do:

<marquee scrollamount="A number">Text here</marquee>
深居我梦 2024-10-10 21:48:50

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

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

Use scrollamount with an integer:
The higher the scrollamount value, the faster the text.

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

Default scrollamount speed is 6.

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

南城旧梦 2024-10-10 21:48:50
<marquee scrollamount="1">SLOW TEXT</marquee>
<marquee>DEFAULT SPEED TEXT</marquee>
<marquee scrollamount="10">FAST TEXT</marquee>
<marquee scrollamount="20">Faster text</marquee>

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

红衣飘飘貌似仙 2024-10-10 21:48:50
         <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>

使用scrollamount来控制速度..

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

use scrollamount to control speed..

陪我终i 2024-10-10 21:48:50

在 HTML5 上,scrollamount 和scrolldelay 属性不起作用。它们是贬义的属性。

On HTML5 the scrollamount and the scrolldelay attributes do not work. They are depricated attributes.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文