css案例,注册页面_基础案例

注册页面案例(css)

<!DOCTYPE html>
<html lang="ch">
<head>
    <meta charset="UTF-8">
    <title>注册页面案例(css)</title>
    <style>
        *{
            margin:0px;
            panning:0px;
            box-sizing:border-box
        }
        body{
            background:url("image/3.jpg") no-repeat center
        }
        .rg_layout{
            border:solid #9eaf9b 8px;
            width:900px;
            height:500px;
            background-color: #56685c;
            margin:auto;
            margin-top:50px
        }
        .rg_left{
            /*border:solid 1px;*/
            float:left;
            margin: 10px;
        }
        .rg_center{
            /*border:solid 1px;*/
            float:left;
            width: 500px;
        }

        .rg_right{
            /*border:solid 1px;*/
            float:right;
            margin: 10px;
        }
        .firword{
            color: #e7d77d;
            font-size: 20px;
        }
        .secword{
            color: #89877b;
            font-size: 20px;
        }
        .rg_right p a{
            color:pink;
        }
        .td_left{
            box-sizing: border-box;
            text-align: right;
            width: 100px;
            height: 45px;
        }
        .td_right{
            box-sizing: border-box;
            padding-left: 60px;
        }
        #username,#password,#email,#name,#birthday,#code,#phonenumber{
            width: 210px;
            height: 35px;
            padding-left: 5px;
            border: 1px solid #89877b;
            border-radius: 5px;
        }
        #code{
            width: 130px;
        }
        #img_code{
            height: 35px;
            vertical-align: middle;
            margin-left: 5px;
        }
        #register{
            border: solid 1px;
            width: 120px;
            height: 45px;
            border-radius: 5px;
            background-color: #e7d77d;
            margin-left: 55px;
            margin-top: 20px;
        }
    </style>
</head>
<body>
    <div class="rg_layout">
        <div class="rg_left">
            <p class="firword">新用户注册</p>
            <p class="secword">USER REGISTER</p>
        </div>

        <div class="rg_center">
            <div class="rg_form">
                <form method="post">
                    <table>
                        <tr>
                            <td class="td_left"><label for="username">用户名</label></td>
                            <td class="td_right"><input type="text" name="username" id="username" placeholder="请输入账号"></td>
                        </tr>
                        <tr>
                            <td class="td_left"><label for="password">密码</label></td>
                            <td class="td_right"><input type="password" name="password" id="password" placeholder="请输入密码"></td>
                        </tr>
                        <tr>
                            <td class="td_left"><label for="email">Email</label></td>
                            <td class="td_right"><input type="email" name="email" id="email" placeholder="请输入Email"></td>
                        </tr>
                        <tr>
                            <td class="td_left"><label for="name">姓名</label></td>
                            <td class="td_right"><input type="text" name="name" id="name" placeholder="请输入真实姓名"></td>
                        </tr>
                        <tr>
                            <td class="td_left"><label for="phonenumber">手机号</label></td>
                            <td class="td_right"><input type="number" name="phonenumber" id="phonenumber" placeholder="请输入您的手机号"></td>
                        </tr>
                        <tr>
                            <td class="td_left">性别</td>
                            <td class="td_right"><input type="radio" name="gender"><input type="radio" name="gender"></td>
                        </tr>
                        <tr>
                            <td class="td_left"><label for="birthday">出生日期</label></td>
                            <td class="td_right"><input type="date" name="birthday" id="birthday"></td>
                        </tr>
                        <tr>
                            <td class="td_left"><label for="code">验证码</label></td>
                            <td class="td_right"><input type="text" name="code" id="code" placeholder="请输入验证码"><img id="img_code" src="../image/2.png" alt="验证码"></td>
                        </tr>
                        <tr>
                            <td colspan="2" align="center"><input type="submit" name="register" id="register" value="注册"></td>
                        </tr>
                    </table>
                </form>
            </div>
        </div>

        <div class="rg_right">
            <p>已有账号?<a href="#">立即登录</a></p>
        </div>
    </div>
</body>
</html>

猜你喜欢

转载自blog.csdn.net/qq_45889221/article/details/107769021
今日推荐