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

我的第一個事件動畫!

Original 2019-01-27 22:53:20 231
abstrakt:<!DOCTYPE html><html>        <head>        <meta charset="UTF-8">        <meta name="viewport

<!DOCTYPE html>

<html>

    

    <head>

        <meta charset="UTF-8">

        <meta name="viewport" content="width=device-width, initial-scale=1.0">

        <meta http-equiv="X-UA-Compatible" content="ie=edge">

        <title>我的第一個事件動畫!</title>

        <style type="text/css"> 

        * {

            margin: 0;

            padding: 0;

        }

        .box {

            width: 500px;

            height: 250px;

            margin: 30px auto 0;

            border: 1px solid #ccc;

        }

        .box p {

            width: 500px;

            height: 40px;

            line-height: 40px;

            text-align: center;

            background: #f5f5f5;

            color: #000;

            font-size: 18px;

            font-weight: bold;

        }

        .box form {

            padding: 10px 30px;

        }

        .box form input {

            width: 420px;

            height: 40px;

            margin: 10px 0;

            border: none;

            border: 1px solid #029cff;

            padding-left: 20px;

            outline: none;

        }

        .box form button {

            margin-top: 10px;

            border: 0;

            width: 440px;

            height: 40px;

            background-color: #029cff;

            color: #fff;

            font-size: 18px;

        }

        </style>

        <script>

            function aa(x) {

                x.style.boxShadow = '1px 1px 10px #029cff';

            }


            function bb(y) {

                y.style.boxShadow = 'none';

            }


            function cc(z) {

                z.style.background = 'red'

            }


            function dd(l) {

                l.style.background = '#029cff'

            }

        </script>

    </head>

    

    <body>

        <div>

            <p>歡迎登錄</p>

            <form action="">

                <input type="text" name="username" placeholder="用戶名" onfocus="aa(this)" onblur="bb(this)">

                <input type="password" name="paw" placeholder="密碼" onfocus="aa(this)" onblur="bb(this)">

                <button onmouseover="cc(this)" onmouseout="dd(this)">登錄</button>

            </form>

        </div>

    </body>


</html>


Korrigierender Lehrer:天蓬老師Korrekturzeit:2019-01-28 09:10:56
Zusammenfassung des Lehrers:函數中的參數(this)指的是什么,你考慮過嗎? 實際上他指的是當前代碼執(zhí)行的上下文 對象, 就是事件做用的本體

Versionshinweise

Beliebte Eintr?ge