为什么div的大小不能还原成200/200,请帮忙看下,TKS~!
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>运动框架检验03</title>
<style type="text/css">
*{margin: 0;padding: 0;list-style: none;}
div{
width: 200px;
height: 200px;
border: 30px solid red;
background: blue;
margin: 50px auto;
opacity: 1;
}
</style>
<script type="text/javascript" src="js/starMove.js"></script>
<script type="text/javascript">
window.onload=function(){
var odiv=document.getElementById("div");
odiv.onmouseover=function(){
starMove(odiv,{width:400,height:400,opacity:0},function(){
odiv.style.background="green";
starMove(odiv,{width:200,height:200,opacity:100});
});
};
};
</script>
</head>
<body>
<div id="div"></div>
</body>
</html>