-----------------变色--------------------------------------------------
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<style>
#div1{
width: 200px;
height: 200px;
background-color: red;
}
</style>
</head>
<body>
<div id="div1"
οnmοuseοver="document.getElementById('div1').style.width='300px';
document.getElementById('div1').style.height='300px';
document.getElementById('div1').style.backgroundColor='blue'";
οnmοuseοut="document.getElementById('div1').style.width='300px';
document.getElementById('div1').style.height='300px';
document.getElementById('div1').style.backgroundColor='green'";
</div>
</body>
</html>
web_07day
最新推荐文章于 2023-06-05 14:32:49 发布