-4
<STYLE>
#object1{
width:100px;
height:100px;
border-radius:100%;
background:skyblue;
animation-name animation1;
animation-duration 2s;
} @keyframes animation1 {
0% { transform: translatex(0px); }
100% { transform: translatex(300px); }
}
</STYLE>
<div id="object1"></div>
请整理这个问题,还有什么“不起作用”? – Deanmv
请添加更多信息,哪些不起作用?应该发生什么?等等..也许是一个小提琴或片段? – dutchsociety
我把你的代码放在一个codepen中,它似乎工作,你在找什么? http://codepen.io/k185/pen/vxoRGm – k185