背景由2章图片叠加而成,只能一起旋转(代码如下)。能否只让其中一张图片运动?谢谢!<style type="text/css">
div {
background-image: url(CDI4TK.png), url(CDI-1.png);
background-repeat: no-repeat, no-repeat;
background-position: center center, center;
width: 500px;
padding: 160px 50px;
-o-animation-delay: 6s;
}
@keyframes myfirst
{
0% {transform: translateY(4px) rotate(5deg);}
100% {transform: translateY(6px) rotate(-10deg);}
}
</style>