<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<script type="text/javascript" src="jquery.min.js"></script>
<script type="text/javascript" src="jquery-1.8.0.min.js"></script>
<style type="text/css">
div{
width:300px;
height:100px;
border:2px solid red;
background-color:pink;
margin:100px auto;
/*多个属性加逗号*/
/*transition:width 2s ease 0s,height 2s ease 0s;*/
/*或者这样写*/
transition:all 2s ease-in 0s;
}
div:hover{
width:500px;
height:200px;
}
</style>
<script type="text/javascript">
</script>
</head>
<body>
<div></div>
</body>
</html>