<!DOCTYPE html><html><head><meta charset="UTF-8"><title>Document</title></head><body><a onmouseover="move()" onmouseout="out()">移动到此处</a><body> <h2 id="con">I love JavaScript</H2> <p > 鼠标移动改变效果</p> <script type="text/javascript"> var h=document.getElementById("con"); h.style.color="red"; h.style.background="#ccc"; function move(){ h.style.display="none"; } function out() { h.style.displau="block"; } </script></body></html>
添加回答
举报
0/150
提交
取消