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

javascript事件測(cè)試

asal 2019-02-23 23:37:06 208
abstrak:<!DOCTYPE html /><html><head>  <meta charset="utf-8" />  <title>js事件測(cè)試</title></head><body>  <script type="text/javascr

<!DOCTYPE html />

<html>

<head>

  <meta charset="utf-8" />

  <title>js事件測(cè)試</title>

</head>

<body>

  <script type="text/javascript">

    function foc(x){

 x.style.background="red";

}


function cli(z){

 z.style.borderRadius="20%";

}


function over(y){

 y.style.borderRadius="30%";

}


function out(k){

 k.style.borderRadius="0%";

}

  </script>

  

  <input type="text" onfocus="foc(this)" />

  <br /><br />

  <div style="width:100px;height:100px;border:1px solid #000;" onclick="cli(this)"></div>

  <br /><br />

  <!--<tr>

    <td style="width:100px;height:100px;border:1px solid pink;" onmouseover="over(this)"></td>

  </tr>-->

  <div style="width:100px;height:100px;border:1px solid pink;" onmouseover="over(this)" onmouseout="out(this)"></div>

  

  

</body>

</html>


Guru membetulkan:西門大官人Masa pembetulan:2019-02-24 09:40:00
Rumusan guru:最好能說(shuō)明一下div中的事件的作用,如onmouseover、onmouseout、onclick、onfocus

Nota Keluaran

Penyertaan Popular