<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>添加滚动的文字</title>
<style type="text/css">
/* font-family为字体的主题 */
h4{font-size: 20px; color:#ff00ff; font-family: 隶书;}
</style>
</head>
<body>
<!-- align为标题的对齐方式 -->
<h3 align="center">添加滚动文字</h3>
<hr color="#000066">
<!-- marquee标签为文字的滚动标签,loop为循环的参数,scrollamount为文字的滚动速度。 -->
<marquee loop="5" scrollamount="50"><h4>我正在滚动</h4></marquee>
</body>
</html>
Web之滚动文字篇
猜你喜欢
转载自blog.csdn.net/qq_40258748/article/details/100782575
今日推荐
周排行