img{
width:55px;
height:55px;
opacity: 0.8;
border-width: 1px;
border-style: solid;
border-color: pink;
border-radius: 50%;
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body>
<marquee width="500px" height="500px" direction="down" scrollamount="50" behavior="alternate">
<img src="ball.png" alt="球">
</marquee>
<!--
width和height类比DIV
width="500px"
height="500px"
direction="up向上,right,down,left"
behavior="alternate":scroll循环,slide一次飘过,alternate来回晃悠"
scrollamount="100":# 移动的速度,#越大速度越快
scrolldelay="500":#,以一毫秒为单位,1000就是延时一秒,走一秒停一秒
-->
</body>
</html>
别闹了Marquee
最新推荐文章于 2022-01-01 17:11:22 发布