HTML实现页面注册

网页版,注册页面

DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>注册页面title>
    
    <link rel="stylesheet" href="html&css.css">
head>
<body>
<style>
    *{
        margin: 0px;/*所有的外边距为0*/
        padding: 0px;/*所有的内边距为0*/
        box-sizing: border-box;/*规定两个并排的带边框的框*/
    }
    body{
        background: url("image/register_bg.png")no-repeat center;
        padding-top: 25px;
    }
    .rg_layout{
        width: 900px;
        height: 500px;
        border: 8px solid #EEEEEE;/*solid 定义实线*/
        background-color: white;
        margin: auto;
    }
    .rg_left{
        float: left;
        margin: 15px;
    }
    .rg_left>p:first-child{
        color: #FFD026;
        font-size: 20px;
    }
    .rg_left>p:last-child{
        color: #A6A6A6;
        font-size: 20px;
    }

    .rg_center{
        float: left;
    }

    .rg_right{
        float: right;
        margin: 15px;
        padding-left: 50px;
    }
    .rg_right p{
        font-size: 15px;
    }
    .rg_right p a{
        color: coral;
    }
    .td_left{
        width: 100px;
        text-align: right;
        height: 45px;
    }
    .td_right{
        padding-left: 50px;
    }
    #username,#password,#email,#name,#tel,#birthday,#checkcode{
        width: 251px;
        height: 32px;
        border: 1px solid #A6A6A6;
        /*设置边框圆角*/
        border-radius: 5px;
        padding-left: 10px;
    }
    #checkcode{
        width: 110px;
    }
    #img_check{
        height: 32px;
        vertical-align: middle;/*设置图片的位置垂直居中*/
    }
    #btn_sub{
        width: 100px;
        height: 40px;
        background-color: #FFD026;
        border: 1px solid #FFD026;
        padding-left: 10px;
    }

style>
<div class="rg_layout">
    <div class="rg_left">
        <p>新用户注册p>
        <p>USER REGISTERp>
    div>
    <div class="rg_center">
        <div class="rg_form">
            <form action="#" method="post">
                <table>
                    <tr>
                        
                        <td class="td_left"><label for="username">用户名label> td>
                        <td class="td_right"><input type="text" name="username" id="username"> td>
                    tr>
                    <tr>
                        <td class="td_left"><label for="password">密码label> td>
                        <td class="td_right"><input type="password" name="password" id="password"> td>
                    tr>
                    <tr>
                        <td class="td_left"><label for="email">emaillabel> td>
                        <td class="td_right"><input type="email" name="email" id="email"> td>
                    tr>
                    <tr>
                        <td class="td_left"><label for="name">姓名label> td>
                        <td class="td_right"><input type="text" name="name" id="name"> td>
                    tr>
                    <tr>
                        <td class="td_left"><label for="tel">手机号label> td>
                        <td class="td_right"><input type="text" name="tel" id="tel"> td>
                    tr>


                    <tr>
                        <td class="td_left"><label for="checkcode">验证码label> td>
                        <td class="td_right">
                            <input type="text" name="username" id="checkcode">
                            <input type="button"value="发送验证码">

                        td>
                    tr>
                    <tr>
                        <td colspan="2" align="center">
                            <input type="submit" value="注册" id="btn_sub">
                        td>
                    tr>

                table>
            form>
        div>
    div>
    <div class="rg_right">
        <p>已有账号?<a href="../html/登录界面.html">立即登录a>p>
    div>
div>
body>
html>

HTML实现页面注册_第1张图片

你可能感兴趣的:(html,css3,css)