实例代码“Ctrl+/”提示“F11/ESC”全屏 返回 格式化 恢复 运行
x
 
1
<!DOCTYPE html>
2
<html>
3
<head>
4
<meta charset="utf-8"> 
5
<title>手册网(www.shouce.ren)</title> 
6
<style> 
7
#myDIV {
8
    width: 300px;
9
    height: 200px;
10
    border: 1px solid black;
11
    -webkit-animation: mymove 5s infinite; /* Chrome, Safari, Opera */
12
    animation: mymove 5s infinite;
13
}
14
15
/* Chrome, Safari, Opera */
16
@-webkit-keyframes mymove {
17
    50% {border-bottom-right-radius: 50px;}
18
}
19
20
/* Standard syntax */
21
@keyframes mymove {
22
    50% {border-bottom-right-radius: 50px;}
23
}
24
</style>
25
</head>
26
<body>
27
28
<p>逐步改变 border-bottom-right-radius 属性(从 0 到 50px):<p>
29
<div id="myDIV"></div>
30
31
<p>border-bottom-right-radius 属性支持动画效果。</p>
32
<p><b>注意:</b>Internet Explorer 9 及更早 IE 版本不支持 CSS 动画。</p>
33
34
</body>
35
</html>