老师,帮忙看下这样写是否正确
来源:2-18 编程练习
多盐少糖
2021-04-15 09:43:03
<!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;
bottom:30px;
width: 30px;
height: 30px;
margin: auto;
transform: rotate(90deg);
animation:j 1s linear 0.5s infinite alternate;
/*此处写代码*/
/*transition:bottom 1s linear 0.5s;*/
}
@keyframes j{
from{
bottom:30px;
}
to{
bottom:16px;
}
}
</style>
</head>
<body>
<div>></div>
</body>
</html>
1回答
同学你好,代码实现基本没问题,但是箭头的动画效果建议实现“顿一下”的效果,与效果图保持一致,可参考如下代码
祝学习愉快!
相似问题
回答 1
回答 1
回答 1
回答 1
回答 1