从右向左移动:使用<marquee></marquee>标签。默认右到左移动
<marquee>我可以自己走动</marquee>
从左向右移动:
<marquee direction="right">我可以自己走动</marquee>
从下向上移动
<marquee direction="up" width="200px" height="500px">我可以自己走动</marquee>
从上向下移动
<marquee direction="down" width="200px" height="500px">我可以自己走动</marquee>
移动速度:使用scrollamount属性控制
<marquee direction="down" scrollamount="30" width="200px" height="500px">我可以自己走动</marquee>
原地跳动文字
<marquee scrollamount="3" direction="up" behavior="alternate" width="60px" height="120px">
我</marquee>
<marquee scrollamount="3" direction="up" behavior="alternate" width="60px" height="80px">
可</marquee>
<marquee scrollamount="3" direction="up" behavior="alternate" width="60px" height="120px">
以</marquee>
<marquee scrollamount="3" direction="up" behavior="alternate" width="60px" height="80px">
自</marquee>
<marquee scrollamount="3" direction="up" behavior="alternate" width="60px" height="120px">
己</marquee>
<marquee scrollamount="3" direction="up" behavior="alternate" width="60px" height="80px">
走</marquee>
<marquee scrollamount="3" direction="up" behavior="alternate" width="60px" height="120px">
动</marquee>
带背景色
<marquee bgcolor="red" scrollamount="3" >我可以自己走动</marquee>
水平方向相反移动
<MARQUEE scrollAmount=1 width=150>水平相反移动</MARQUEE>
<MARQUEE scrollAmount=1 direction=right width=150>动移反相平水</MARQUEE>
左右两边向中间移动
<MARQUEE scrollAmount=1 direction=right width=150>左右两边向中间移动</MARQUEE>
<MARQUEE scrollAmount=1 width=150>动移间中向边两右左</MARQUEE>