麻烦老师检查一下了谢谢~
来源:2-18 编程练习
转行学习中_阶段一
2022-10-21 17:25:54
<!DOCTYPE html>
<html lang="en">
<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: 50%;
left: 50%;
bottom: 30px;
width: 30px;
height: 30px;
margin: auto;
transform: rotate(90deg);
/*此处写代码*/
animation: move 1s linear 0.5s infinite alternate-reverse ;
}
@keyframes move {
from {
transform: rotate(90deg) translateX(0px)
}
to {
transform: rotate(90deg) translateX(20px);
}
}
</style>
</head>
<body>
<div>></div>
</body>
</html>1回答
好帮手慕星星
2022-10-21
同学你好,代码实现效果可以。继续加油,祝学习愉快!
相似问题