登录表单

4 篇文章 0 订阅
1 篇文章 0 订阅
<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>登录表单</title>
    <style>
        body{
            background-color: #eeeeee;
        }
        .form{
            width: 400px;
            height: 220px;
            box-shadow: 1px 1px 3px #ccc;
            margin:0 auto;
            padding:20px 0;
            background-color: #fff;
        }
        #formA{
            margin:0 auto;
            width: 260px;
        }
        input{
            display: block;
            margin: 0;
            padding: 0;
            background: none;
            border:none;
        }
        label{
            /*display: inline-block;*/
            font-size: 12px;
            color:#ccc;
            text-align: left;
            height:17px;
            line-height: 17px;
        }
        .text-box{
            height: 40px;
            width: 250px;
            border:1px solid #ddd;
            margin:5px 0;
        }
        .checkbox{
            display:inline-block;
            margin-right: 10px;
        }
        .btn{
            height: 35px;
            width: 100px;
            margin-top: 10px;
            cursor: pointer;
        }
        .reg-btn{
            background-color: #E74c3c;
            color:#fff;
            float:left;
        }
        .login-btn{
            background-color: #46ade7;
            color:#fff;
            float:left;
            margin-left: 52px;
        }

        .box-style{
            border:1px solid #46ade7;
            box-shadow: 0px 0px 2px #46ade7;
        }

    </style>
    <script src="js/jquery-1.11.2.min.js"></script>

</head>
<body>
    <div class="a">
        <div class="b">
            jkahkld hk;ahkdjhahdha; ;ahauohf;klah;lk jh;lh;l
        </div>
        <div class="c">
            xxxxxxxxxx
        </div>
    </div>

    <div class="form">
        <form id="formA" action="">
            <label>用户名/手机号/邮箱</label>
            <label for="" >
                <input type="text" class="text-box" id="text"/>
            </label>

            <label>密码</label>
            <label for="" >
                <input type="password" class="text-box" id="password"/>
            </label>
            <label>
                <input type="checkbox" class="checkbox"/>记住密码
            </label><br/>
            <label for="" >
                <input type="button" class="btn reg-btn" value="注册"/>
            </label>
            <label for="" >
                <input type="button" class="btn login-btn" value="登录"/>
            </label>
        </form>
    </div>


    <script>
        $("#text,#password").focus(function(){
            $(this).addClass("box-style");
        }).blur(function(){
            $(this).removeClass("box-style");
        });

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值