2 回答

月_霜影
TA贡献6条经验 获得超2个赞
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>无标题文档</title>
<style type="text/css">
.box{
width: 80px;
height: 80px;
animation: rotate 1s infinite linear;
background-color: #333;
margin: 50px auto;
}
@-webkit-keyframes rotate{
from{
-webkit-transform:rotate(0deg);
}
to{
-webkit-transform:rotate(360deg);
}
}
@keyframes rotate{
from{
-webkit-transform:rotate(0deg);
}
to{
-webkit-transform:rotate(360deg);
}
}
</style>
</head>
<body>
<div>
</div>
</body>
</html>
添加回答
举报
0/150
提交
取消