2-18练习题

来源:2-18 编程练习

海波_

2021-05-30 19:00:39

<!DOCTYPE html>
<html>

<head>
<meta charset="UTF-8">
<title>2-9</title>
<style type="text/css">
div {
font-family: Arial;
font-size: 72px;
font-weight: bold;
position: fixed;
right: 0;
left: 0;

width: 30px;
height: 30px;
margin: auto;
transform: rotate(90deg);
/*此处写代码*/
animation: div 1.2s linear 0s infinite;
}

@keyframes div {
0% {
bottom: 40px;
}

50% {
bottom: 20px;

}

75% {
bottom: 25px;

}

100% {
bottom: 20px;

}

}
</style>
</head>

<body>
<div>&gt;</div>
</body>

</html>

老师我哪里需要改善吗

写回答

1回答

好帮手慕星星

2021-05-30

同学你好,代码实现效果很棒,不需要修改了。继续加油,祝学习愉快!

0

0 学习 · 15276 问题

查看课程

相似问题