菜鸟学堂
在线运行
源代码
<html><!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>菜鸟学堂</title> <style> div { width:100px; height:100px; background:red; position:relative; animation:mymove 5s; animation-play-state:paused; /* Safari and Chrome */ -webkit-animation:mymove 5s; -webkit-animation-play-state:paused; } @keyframes mymove { from {left:0px;} to {left:200px;} } @-webkit-keyframes mymove /* Safari and Chrome */ { from {left:0px;} to {left:200px;} } </style> </head> <body> <p><strong>注意:</strong> animation-play-state属性不兼容 Internet Explorer 9以及更早版本的浏览器.</p> <div></div> </body> </html>
运行结果
在线运行
菜鸟学堂 edu.jb51.net