使用Marquee标签
基本滚动 marquee:默认从右到左
<body>
<marquee>我从右跑到左,不会停止</marquee>
<marquee direction=left>我从右跑到左,不会停止</marquee>
<marquee direction=right>我从左跑到右,不会停止</marquee>
<marquee direction=up>我从下跑到上,不会停止</marquee>
<marquee direction=down>我从上跑到下,不会停止</marquee>
<marquee behavior=scroll>我一遍一遍往左走</marquee>
<marquee behavior=slide>我只走一次就停了</marquee>
<marquee behavior=alternate>我从左走到右,再从右走到左</marquee>
<marquee loop=3 width=300px>我只走3次</marquee>
<marquee scrollamount=20>我走得好快啊</marquee>
<marquee scrolldelay=500 acrollamount=100>我走一走,停一停</marquee>
</body>