效果图:

 

代码:

<!DOCTYPE html>
<html lang="en">
<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>
    *{
        margin: 0px;
        padding: 0px;
    }
    .submit{
        height:45px;
        width: 100%;
        color:white;
        background:rgb(91, 113, 241);
        font-family: "黑体";
        font-size: 18px;
    }
    .input{
        padding: 5px;
        height: 38px;
        box-sizing: border-box;
        width: 100%;
        margin: 2px;
    }
    .input2{
        padding: 5px;
        height: 38px;
        box-sizing: border-box;
        width: 78%;
        margin:2px;
    }
    input[type="button"]{
        height: 35px;
        width: 80px;
        padding: 2px 5px;       
    }
    .clearfix::after{
        content: "";
        clear: both;
        display:block;
    }
    .title{
        
    }
    </style>
</head>
<body>
    <table>
        <tr>
            <td class="title"><span>用户名:</span></td>
            <td>
                <input type="text" class="input" id="username" placeholder=" 请设置用户名">
            </td>
        </tr>
        <tr>
            <td class="title"><span>手机号:</span></td>
            <td>
                <input type="text" name="" id="telephone" class="input" placeholder="可用于登录及找回密码">
            </td>
        </tr>
        <tr>
            <td class="title"><span>密码:</span></td>
            <td colspan><input type="password" name="" id="password" class="input" placeholder="请设置登录密码"></td>
        </tr>
        <tr>
            <td class="title"><span>验证码:</span></td>
            <td class="clearfix"> 
                <input type="text" name="" id="password_id" class="input2" placeholder="请输入验证码">
                <input type="button" value="获取验证码">
            </td>
        </tr>
        <tr>
            <td></td>
            <td>
                <input type="checkbox" name="" id="right" style="display: inline;">
                <p style="display: inline;">阅读并接受<a href="#">《百度用户协议》</a>和<a href="#">《百度隐私权保护声明》</a></p>
            </td>
        </tr>
        <tr>
            <td></td>
            <td><input type="submit" value="注册" class="submit"></td>
        </tr>
    </table>
</body>
</html>

成果图: