ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

HTML-简单form表单实现

2021-08-25 19:03:45  阅读:143  来源: 互联网

标签:小姐姐 form 用户注册 表单 密码 HTML 性别


一些简单标签使用...

具体可见这里

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>form表单</title>
</head>

<body>
    <!-- 内嵌式CSS样式 -->
    <div style="
    text-align: center;
    border: solid 10px #BCF0F0;
	border-radius: 20px;
	width: 800px;
	height: 700px;
	margin: auto;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
    ">
        <h1>用户注册</h1>
        <br>
        <form>
            <!-- 多个文本输入框左对齐方法:给label设置一个统一宽度,输入框左边缘会按这个边界排列对齐 -->
            <p>
                <label for="title" style="display: inline-block;padding: 3px 6px; text-align: right; width: 80px; ">用户名:</label>
                <input type="text" id="title" name="title" align="left">
            </p>
            <p>
                <label for="title" style="display: inline-block;padding: 3px 6px; text-align: right; width: 80px; ">密码:</label>
                <input type="text" id="title" name="title" align="left">
            </p>
            <p>
                <label for="title" style="display: inline-block;padding: 3px 6px; text-align: right; width: 80px; ">确认密码:</label>
                <input type="text" id="title" name="title" align="left">
            </p>
            <p>
                <label for="title" style="display: inline-block;padding: 3px 6px; text-align: right; width: 80px; ">性别:</label>
                <input type="radio" id="title" name="gender" align="left">小哥哥
                <input type="radio" id="title" name="gender" align="left">小姐姐
            </p>
            <p>
                <label for="title" style="display: inline-block;padding: 3px 6px; text-align: right; width: 80px; ">性别:</label>
                <input type="checkbox" id="title" name="hobby" align="left">学习
                <input type="checkbox" id="title" name="hobby" align="left">编程
                <input type="checkbox" id="title" name="hobby" align="left">健身
            </p>
            <label for="title" style="display: inline-block;padding: 3px 6px; text-align: right; width: 80px; ">出生日期:</label>
            <input type="date">
            <p>
                <label for="title" style="display: inline-block;padding: 3px 6px; text-align: right; width: 80px; ">工资:</label>
                <input type="text" id="title" name="gender" align="left">
            </p>
            <p>
                
                <label for="title" style="display: inline-block;padding: 3px 6px; text-align: right; width: 80px; ">学历:</label>
                <select name="city">
                    <option value="1">大专</option>
                    <option value="2">本科</option>
                    <option value="3">硕士研究生</option>
                    <option value="4">博士</option>
                </select>
            </p>
            <p>
                <label for="title" style="display: inline-block;padding: 3px 6px; text-align: right; width: 80px; ">基本信息:</label>
                <textarea name="baseinformation"cols="30" rows="4"></textarea>
            </p>
            
            <!-- 按钮 -->
            <div style="display: inline-block;">
               
                    <input type="submit"style="float: left;">
                    <input type="reset"style="float: left; margin-left: 50px;">
                
            </div>
            
        </form>

    </div>
</body>

</html>

标签:小姐姐,form,用户注册,表单,密码,HTML,性别
来源: https://www.cnblogs.com/xy-0709/p/15186519.html

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有