案例:CSS3案例     状态:可编辑再运行    进入横版
AخA
@-webkit-keyframes myfirst /* Safari and Chrome */
 
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-name:myfirst;
12
animation-duration:5s;
13
animation-timing-function:linear;
14
animation-delay:2s;
15
animation-iteration-count:infinite;
16
animation-direction:alternate;
17
animation-play-state:running;
18
/* Firefox: */
19
-moz-animation-name:myfirst;
20
-moz-animation-duration:5s;
21
-moz-animation-timing-function:linear;
22
-moz-animation-delay:2s;
23
-moz-animation-iteration-count:infinite;
24
-moz-animation-direction:alternate;

 运行结果 
 北美留学生论坛