abstract:<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>js動(dòng)畫(huà)</title> </head> <body> <div style="width: 200px;h
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>js動(dòng)畫(huà)</title> </head> <body> <div style="width: 200px;height: 200px;border: 1px solid black;margin: 0 auto;" onmouseover="myonmouseover(this)" onmouseout="myonmouseout(this)" onmousedown="myonmousedown(this)"></div> <script type="text/javascript"> function myonmouseover(x){ x.style.background="#f40" } function myonmouseout(y){ y.style.background="#fff" } function myonmousedown(z){ z.style.background="blue" } </script> </body> </html>
Correcting teacher:韋小寶Correction time:2019-03-09 09:08:56
Teacher's summary:寫(xiě)的很不錯(cuò) JavaScript中重要的也就是獲取元素 來(lái)對(duì)元素進(jìn)行改變