文字滚动(类似新闻滚动条)

<html>
<head>
	<title>我的第一个页面</title>
</head>
<body>
	<marquee behavior="scroll" direction="up" height="30" style="overflow:hidden;" scrollamount="1" width="300" onMouseOver="stop()" onMouseOut="start()">
		今天天气可以!!!!
	</marquee>
</body>
</html>

  

direction:方向

​ up:上 down:下 left:左 right:右

scrollamount:滚动速度-----------------scroll:滚动 amount:数值

width:宽度 height:高度

onmouseover:当鼠标移上去

onmouseout:当鼠标离开

stop():停止

start():开始

behavior:

​ scroll 循环滚动

​ alternate 来回滚动

​ slide 滚动一次停止

原文地址:https://www.cnblogs.com/mr17/p/15212640.html