请老师检查2-18练习谢谢啦
来源:2-18 编程练习
清夏_
2022-04-21 16:43:41
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>2-9</title>
<style type="text/css">
div {
font-family: Arial;
font-size: 52px;
font-weight: bold;
position: fixed;
right: 0;
left: 0;
width: 20px;
height: 20px;
margin: auto;
transform: rotate(90deg);
/*此处写代码*/
bottom: 30px;
/* 调用动画 */
animation: pics 1s linear 0s alternate infinite;
}
@keyframes pics {
/* 用百分比拉开 */
0% {
bottom: 40px;
}
25% {
bottom: 10%;
}
50% {
bottom: 20px;
}
75% {
bottom: 10px;
}
100% {
bottom: 40px;
}
}
</style>
</head>
<body>
<div>></div>
</body>
</html>
搜索
复制
1回答
好帮手慕久久
2022-04-21
同学你好,代码正确,很棒,祝学习愉快!
相似问题
回答 1
回答 1
回答 1
回答 1
回答 1