案例:CSS3 案例     状态:可编辑再运行    进入竖版
 运行结果 
x
 
1
<!DOCTYPE html>
2
<html>
3
<head>
4
<style> 
5
div
6
{
7
width:100px;
8
height:100px;
9
background:red;
10
position:relative;
11
animation:mymove 5s infinite;
12
animation-delay:2s;
13
14
/*Safari and Chrome*/
15
-webkit-animation:mymove 5s infinite;
16
-webkit-animation-delay:2s;
17
}
18
19
@keyframes mymove
20
{
21
from {left:0px;}
22
to {left:200px;}
23
}
24
25
@-webkit-keyframes mymove /*Safari and Chrome*/
26
{
27
from {left:0px;}
28
to {left:200px;}
29
}
30
</style>
31
</head>
32
<body>
33
34
<p><strong>注释:</strong>Internet Explorer 9 以及更早的版本不支持 animation-delay 属性。</p>
35
36
<div></div>
37
38
</body>
39
</html>
40