[ css 过渡 transition ] transition新增过渡属性的实例演示

实例:

<!DOCTYPE html>
<html lang='zh-cn'>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>[ transition ] 新增过度属性的实例演示</title>
<meta http-equiv='description' content='this is my page'>
<meta http-equiv='keywords' content='keyword1,keyword2,keyword3'>

<style type='text/css'>
div {
  margin: 0; padding: 0;
}
#box {
  width: 500px; height: 500px; transition:1s all;background:red;
}
#box:hover{width:100px;height:100px;}

</style>
</head>
<body>
  <div id='box'></div>
</body>
</html>

 

posted @ 2016-06-27 12:31  窗棂  Views(207)  Comments(0Edit  收藏  举报