写成这样: oEle[i].onmouseover = function() {this.style.top="350px";}; oEle[i].onmouseout = function() {this.style.top="0px";};