欢迎来到我的博客
你们好! 这是我第一次使用 CSDN 写博客。希望大家可以认真阅读,多多包涵。希望可以对你们有一些帮助,想要源代码的可以私信或者评论,接下来我会发一些我平时的学习总结和成果,望你们多多支持!
如何写一段带特效的欢迎语
源代码
.
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>跳动的文字</title>
<style>
body{
margin-top:200px;/*设置页面顶部空白*/
margin-left:400px;/*设置页面左部空白*/
font: "微软雅黑";font-size: 40px;color: gray;
}
</style>
</head>
<body>
<marquee width=200 scrollAmount=5 direction=right behavior=alternate>
<marquee direction=up behavior=alternate width=50 height=80 align="middle">欢</marquee>
<marquee direction=up behavior=alternate width=50 height=70>迎</marquee>
<marquee direction=up behavior=alternate width=50 height=80>来</marquee>
<marquee direction=up behavior=alternate width=50 height=70>到</marquee>
<marquee direction=up behavior=alternate width=50 height=80>我</marquee>
<marquee direction=up behavior=alternate width=50 height=70>的</marquee>
<marquee direction=up behavior=alternate width=50 height=80>博</marquee>
<marquee direction=up behavior=alternate width=50 height=70>客</marquee>
</marquee>
</body>
</html>
效果如下: