亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

JavaScript事件--鼠標(biāo)移上或離開會(huì)變色

Original 2019-03-28 11:40:41 360
abstract:<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>js</title> <style>         .box{  
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>js</title>
<style>
        .box{
         width:400px;
         height:400px;
         border:1px solid #ccc;
         background:pink;
         border-radius:200px;
         margin:100px auto;
        } 
</style>
</head>
<body>
<div class="box" onmouseover="myimg(this)" onmouseout="img(this)">
</div>

<script>
            function myimg(x){
         x.style.background="blue";
           }
           function img(y){
         y.style.background="pink";
           }

</script>
</body>
</html>

總結(jié):事件的簡(jiǎn)單了解還是不錯(cuò)的,需要我們多加練習(xí)!

Correcting teacher:查無此人Correction time:2019-03-28 13:21:22
Teacher's summary:完成的不錯(cuò)。js事件有很多,記住一些常用的就行了。繼續(xù)加油。

Release Notes

Popular Entries