感谢您的支持,我会继续努力的!
打开微信扫一扫,即可进行扫码打赏哦
点我查看本站打赏源码!
Powered by RUNCODEX.COM,学的不仅是技术,更是梦想!!!
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
</head>
<body>
<div id="div1" onmouseover="toRed()" onmouseout="toBlue()">
</div>
</body>
</html>
xxxxxxxxxx
function toRed(){
var oDiv=document.getElementById('div1').style;
oDiv.width='200px';
oDiv.height='200px';
oDiv.background='red';
}
function toBlue(){
oDiv.width='100px';
oDiv.heigth='100px';
oDiv.background='blue';
#div1{
width:100px;
height:100px;
background:blue;