感谢您的支持,我会继续努力的!
打开微信扫一扫,即可进行扫码打赏哦
点我查看本站打赏源码!
Powered by RUNCODEX.COM,学的不仅是技术,更是梦想!!!
<html>
<head>
<title>网页练习</title>
</head>
<body>
<div id="oDiv" onmouseover()></div>
<div id="oDiv2"></div>
<div id="oDiv3"></div>
<div id="oDiv4"></div>
</body>
</html>
xxxxxxxxxx
window.onload=function(){
var getoDiv=document.getElementById("oDiv");
onmuseover()=getoDiv.style.background="red";
}
#oDiv{
width:200px;
height:200px;
background:yellow;
margin:10px;
float:left;
#oDiv2{
background:#CCC;
#oDiv3{
background:yellowgreen;
clear:both;
#oDiv4{
background:pink;