abstract:<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Document</title> </head> <body> <script type="text/javascri
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Document</title> </head> <body> <script type="text/javascript"> function aa(x){ x.style.background="red" } function bb(y){ y.style.background="#ccc" } </script> <div style="width: 150px;height: 150px;background-color: #ccc;" onmousemove="aa(this)" onmouseout="bb(this)"></div> </body> </html>
JavaScript 事件小案例 鼠標(biāo)從某元素移開和鼠標(biāo)移到某元素之上
Correcting teacher:韋小寶Correction time:2019-01-21 16:14:36
Teacher's summary:寫的很不錯 很簡單的小案例 課后沒事可以多找點(diǎn)類似的案例來練習(xí)