2013-02-10 68 views
3

我是HTML中的新手。我正在使用<marquee>标记。更改脚步和方向<marquee>

有没有办法将文字移动的方向从右向左改为其他方向?

另外,我可以改变这些选框运行的速度吗?

+0

请看这里http://www.plus2net.com/html_tutorial/html_marquee_direction.php – Pandian 2013-02-10 18:29:40

回答

3

您可以使用标签创建滚动字幕(即滚动文字或滚动图像)。它可以完全定制。在你有兴趣修改滚动文本的方向和速度,这可能通过添加一些属性。

例如,一个示例HTML代码:

<marquee behavior="scroll" direction="left" scrollamount="1">Pace-slow</marquee> 

这里属性方向可以根据滚动的方向值等向左,向上,向右等和滚动量可以控制速度,更越快。

1

<!-- Scroll Amount --> 
 
<marquee scrollamount="50"> This is a marquee with scrollamount 50 </marquee> 
 
<marquee scrollamount="5"> This is a marquee with scrollamount 5 </marquee>

<!-- Scroll Delay --> 
 
<marquee scrolldelay="50">This is a marquee with scrolldelay 50</marquee> 
 
<marquee scrolldelay="100">This is a marquee with scrolldelay 100</marquee>

<!-- mouse over or click events --> 
 
<marquee onmouseover="this.stop()" onmouseout="this.start()">This marquee will stop on mouseover.</marquee> 
 
<marquee onclick="this.stop()">This marquee will stop on mouseclick. </marquee>

附加参考: enter link description hereenter link description here