marquee标签单个滚动效果
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>marquee</title>
</head>
<body style="background: black;padding: 20px;">
<marquee><span style="font-weight: bolder;font-size: 40px;color: white;">Welcom CSDN!</span></marquee>
</body>
</html>
marquee标签多个文字滚动效果
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>marquee</title>
<style>
body {
background: black;
padding: 20px;
}
marquee {
font-weight: bolder;
font-size: 40px;
color: white;
}
</style>
</head>
<body>
<marquee direction="up">UP</marquee>
<marquee direction="down">DOWN</marquee>
<marquee direction="left">LEFT</marquee>
<marquee direction="right">RIGHT</marquee>
</body>
</html>
设置滚动速度和延迟(scrolldelay:延迟、scrollamount:速度)
<marquee scrolldelay="800" scrollamount="100">Welcom CSDN!</marquee>
限制滚动文字的行为(alternate:来回、scroll:循环滚动、slide:只滚动一次)
滚动的方向(left、right、down、up)