<html>
<head>
<title>Style Example</title>
</head>
<body>
<p>Move your mouse over the square.</p>
<div id="div1"
style="background-color: red; height: 50px; width: 50px"
οnmοuseοver="this.style.backgroundColor = 'blue'"
οnmοuseοut="this.style.backgroundColor = 'red'"></div>
</body>
</html>
通过鼠标事件改变元素的某种状态
最新推荐文章于 2020-07-08 16:05:28 发布