我需要兩個數字並排動畫從頂部到底部但它不工作。如果我讓位置:絕對在.f_circleG類的工作,但不是並排。另一個問題是爲什麼需要postions:absolute with animation.Below是我的HTML和CSS代碼。我需要兩個數字並排動畫從上到下,爲什麼需要位置:絕對與動畫
<style type='text/css'>
ul, ul li { list-style:none; display:inline; }
.f_circleG{
position:absolute;
background-color:#FFF;
animation:f_fadeG 1.00s infinite;
}
@-moz-keyframes f_fadeG {
0%{ background-color:transparent; top:0px;}
100%{ background-color:transparent; top:100%; }
}
</style>
</head>
<body>
<div id="floatingCirclesG">
<ul>
<li class="f_circleG">1</li>
<li class="f_circleG">2</li>
</ul>
</div>
</body>
Thanx for ans,但動畫不工作,即使在你的jsfiddle – Nilesh 2013-04-12 05:54:40
對不起,我mistek發佈錯誤的網址 CHK它現在在CHROME的URL下面 http://jsfiddle.net/teZdz/ – 2013-04-12 08:31:18