在body内输入以下内容
<marquee>
输入内容
</marquee>
在head内写个style
<style>
marquee{
width:200px;
height:200px;
bgcolor:red;
}
</style>
这样简单的跑马灯就出来了。
一下内容要添加在marquee标签内:
指定跑马灯的方向是向上的:direction="up",左右下用left、right、down
scrollamount="1" 表示速度,1特别慢,具体要怎样的速度可以自己多试几次
loop="1" 表示只播放一次
behavior="alternate" 表示在左右来回滑行
behavior="slide" 表示滑行至左停止