老师检查一下作业
来源:2-21 自由编程
踩一个脚印
2022-09-27 20:15:20
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
.box {
left: 600px;
top: 200px;
width: 88px;
height: 81px;
background-image: url(images/xin.png);
position: relative;
}
.box1 {
width: 88px;
height: 81px;
background-image: url(images/xin.png);
position: absolute;
/* 调用动画 */
animation: t 1s linear 0s infinite;
}
/* 定义动画 */
@keyframes t {
from {
transform: scale(1);
opacity: 1;
}
to {
transform: scale(3);
opacity: 0;
}
}
</style>
</head>
<body>
<div class="box">
<div class="box1"></div>
</div>
</body>
</html>1回答
好帮手慕久久
2022-09-28
同学你好,代码是对的,很棒,祝学习愉快!
相似问题