请老师检查

来源:2-20 编程练习

KangarooL

2021-03-19 17:42:48

相关代码:

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>2-4</title>
<style type="text/css">
div {
font-family: 'Microsoft Yahei';
font-size: 60px;
font-weight: bold;
line-height: 600px;
position: absolute;
top: -1000px;
right: 0;
left: 0;
width: 800px;
height: 600px;
margin: auto;
text-align: center;
border: 5px solid #000;
border-radius: 50%;
/*此处写代码*/
animation:disp 3s ease 2s infinite;
}
@keyframes disp {
from {
top:-1000px;
}

to {
top:50px;
}
}
</style>
</head>
<body>
<div>大家好,欢迎来到慕课网!</div>
</body>
</html>


写回答

1回答

好帮手慕言

2021-03-19

同学你好,动画效果可以不重复,执行一次就好,如下:

http://img.mukewang.com/climg/605477240933f9d805940094.jpg

​祝学习愉快~

0
hangarooL
hp>好的 谢谢老师!

h021-03-19
共1条回复

0 学习 · 15276 问题

查看课程