x
 
<!DOCTYPE html>
<html>
<head>
<style> 
#myDIV {
  width: 300px;
  height: 200px;
  border: 1px solid black;
  animation: mymove 5s infinite;
}
@keyframes mymove {
  50% {border-left: 15px solid lightblue;}
}
</style>
</head>
<body>
<h1>border-left 的动画效果:</h1>
<p>逐渐更改 border-left 属性:<p>
<div id="myDIV"></div>
<p>border-left 是所有 border-left 属性的简写属性。</p>
<p>请查看单个的 border-left 的属性,来了解哪些是<em>支持动画制作的</em></p>
<p><b>注释:</b>CSS 动画在 Internet Explorer 9 以及更早版本中不起作用。</p>
</body>
</html>