<style type="text/css"> #div1{ color: red; width: 250px; height: 300px; } </style>
<script type="text/javascript"> function first(){ var red=document.getElementById("div1"); red.style.backgroundColor="blue"; } function second(){ var red=document.getElementById("div1"); red.style.backgroundColor="red"; } </script>
<div id="div1" οnmοuseοver="first()" οnmοuseοut="second()"></div>
JS之手标改变颜色问题
最新推荐文章于 2023-10-27 11:33:37 发布