<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<!-- marquee 跑马灯(文字图片皆可) -- 不是w3c标准,但各大浏览器兼容都好
1. behavior : 滚动类型,
1: slide 滚动到边界并停留在边界
2:alternate 来回弹(注意如果 loop滚动次数设置为1,则不会来回弹)
2. direction : 滚动方向
3. scrollamount : 滚动速度
4. loop : 滚动次数,默认为 -1,也就是无限滚动
-->
<marquee behavior="slide" direction="right" scrollamount="123" loop="1">fight!</marquee>
<marquee behavior="alternate" direction="right" scrollamount="123">gogogo!</marquee>
</body>
</html>