<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<marquee id="affiche" align="left" behavior="scroll" bgcolor="#F00" direction="up" height="300" width="200" hspace="50" vspace="20" loop="-1" scrollamount="1000" scrolldelay="3000" onMouseOut="this.start()" onmouseover="this.stop()">这是一个广告哦!</marquee>
</body>
</html>
marquee:用于设置字体来回滚动需求、一般用于网页标题
behavior:scroll 一个方向滚动、alternate、来回滚动
direction:设置滚动方向 默认从右往左
srollamount:设置滚动时间 值越大速度越快
scrolldelay:滚动延迟
onmouseover:鼠标移动到上面触发动作 this.stop() 文字停止移动
onmouseout:鼠标移开触发动作 this.start() 文字开始移动