HTML事件改变输入框颜色

Original 2018-11-19 10:48:24 208
abstract:<!DOCTYPE html><html><head>   <meta charset=utf-8" />   <title>HTML事件</title>   </head><body>   <script

<!DOCTYPE html>

<html>

<head>

   <meta charset=utf-8" />

   <title>HTML事件</title>   

</head>

<body>

   <script type="text/javascript">

    function myfovus(x){

    x.style.background="pink"

    }


   </script>

   姓名:<input type="text" onfocus="myfovus(this)">



</body>

</html>


Correcting teacher:灭绝师太Correction time:2018-11-19 10:53:23
Teacher's summary:掌握的不错,但是需要你把事件方法一一测试一下啊,不要偷懒

Release Notes

Popular Entries