箭头不动、、、
来源:2-29 编程练习
马_贝er
2017-03-14 18:36:16
代码如下。哪里错了?望指正
<!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);
/*此处写代码*/
bottom:150px;
animation-name:jiantou;
animation-iteration-count:infinite;
animation-delay:0.5s;
animation-direction:alternate-reverse;
}
@keyframes jiantou{
from{bottom:200px;}
to{bottom:150px;}
}
</style>
</head>
<body>
<div>></div>
</body>
</html>
2回答
慕前端9681318
2017-04-02
animation
必有的两个参数:name和duration
你有延迟0.5s触发,但没有动画持续时间,不会动。
要加上:
-webkit-animation-duration:1s;
animation-duration:1s;
Hbrsql
2017-03-14
少设置一个参数:
animation-duration
相似问题