2020.10.10表单格式化

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<form>
    <h1 align="center">用户注册</h1>
    <table align="center">
        <tr>
            <td>用户名称:</td>
            <td>
                <input type="test" value="admin"/>
            </td>
        </tr>

        <tr>
            <td>用户密码:</td>
            <td>
                <input type="password">
            </td>
        </tr>

        <tr>
            <td>确认密码:</td>
            <td>
                <input type="password">
            </td>
        </tr>

        <tr>
            <td>性别:</td>
            <td>
                <input type="radio" name="sex" checked="checked">男<input type="radio" name="sex">女
            </td>
        </tr>

        <tr>
            <td>兴趣爱好:</td>
            <td>
                <input type="checkbox">抽烟<input type="checkbox">喝酒<input type="checkbox">烫头
            </td>
        </tr>

        <tr>
            <td>国籍:</td>
            <td>
                <select>
                    <option>--请选择国家--</option>
                    <option>中国</option>
                    <option>美国</option>
                    <option>英国</option>
                    <option>日本</option>
                </select>
            </td>
        </tr>

        <tr>
            <td>自我评价:</td>
            <td>
                <textarea rows="10" cols="20">请输入您的自我评价</textarea>
            </td>
        </tr>

        <tr>
            <td align="center"><input type="reset"></td>
            <td align="center"><input type = "submit"></td>
        </tr>
    </table>
</form>
</body>
</html>
复制代码
posted @ 2020-10-10 19:57  Gqan  阅读(70)  评论(0编辑  收藏  举报