var imgUrl="rabbit-big.png"; var ele=document.getElementById('rabbit'); var position=["0 -854","-174 -852","-349 -852","-524 -852","-698 -852","-873 848"]; animation(imgUrl,ele,position);function animation(urlimage,ele,position){ ele.style.backgroundImage = 'url(' + imgUrl + ')'; ele.style.backgroundRepeat="no-repeat"; var i=0;
添加回答
举报
0/150
提交
取消