form表单实现用户注册界面

<input type="元素名称"/>

    button: 普通按钮     value=“按钮的文字”   js/jquery代码

    checkbox 复选框     checked=“checked”默认选中

    file 上传控件

    hidden 隐藏域  value=“值” 和php脚本程序交互

    image 图片提交按钮  src=“图片路径”图片形态

    <form> action=“处理页面” method=“post/get”

    submit  和图片提交按钮image功能一样 按钮形态

    password 密码框

    radio 单选框 排他效果 name=“相同”

    text 文本框

    reset 重置  把所有表单元素还原成默认状态

                value=“按钮上的文字”

    <texteara  cols=“文本列数”  row=“文本行数”>  没有滚动条cols+2

141602_5Lgi_2509123.png

代码部分:

<!doctype html>

<html>

<head>

<meta charset="utf-8">

<title>无标题文档</title>


</head>


<body>

<table border="2px" bordercolor="#FF0000" width="800px" height="700px" align="center">

<tr>

<td valign="top">

<table align="center" border="0px" width="750px">

<tr height="40px" valign="bottom">

<td width="120pxS" align="center"><strong style="font-size:12px">个人资料:</strong></td>

                    <td style="font-size:12px; color:#666"><a style="color:#F00">*</a> 为必填项</td>

                </tr>

                <tr>

                    <td colspan="2"><hr></td>

                </tr>

             </table>        

             <table align="center" border="0px" width="650px">

             <tr>

                <td align="right" style="font-size:12px; width:80px"><a style="color:#F00">*</a>验证码:</td>

                <td><input type="text"></td>

                <td style="width:40px"><img src="1.png"</td>

                <td style="font-size:12px; color:#666">点击切换</td>

             </tr>

             <tr>

                <td align="right" style="font-size:12px; width:80px"><a style="color:#F00">*</a>手机号码:</td>

                <td width="60pxpx"><input type="text"></td>

                <td  colspan="2" style="font-size:12px; color:#666">最多11个字符,例如:13812345678</td>

             </tr>

          <tr>

                <td align="right" style="font-size:12px; width:80px"><a style="color:#F00">*</a>电子邮箱:</td>

                <td width="60pxpx"><input type="text"></td>

                <td  colspan="2" style="font-size:12px; color:#666">此邮箱用来确认你的身份</td>

             </tr>

              <tr>

                <td align="right" style="font-size:12px; width:80px"><a style="color:#F00">*</a>设置密码:</td>

                <td width="60pxpx"><input type="text"></td>

                <td  colspan="2" style="font-size:12px; color:#666">长度为6-20个字符之间</td>

             </tr>

              <tr>

                <td align="right" style="font-size:12px; width:80px"><a style="color:#F00">*</a>重置密码:</td>

                <td width="60px"><input type="text"></td>

                <td  colspan="2" style="font-size:12px"></td>

             </tr>

              <tr>

                <td align="right" style="font-size:12px; width:80px"><a style="color:#F00">*</a>姓    名:</td>

                <td><input type="text"></td>

                <td  colspan="2" style="font-size:12px; color:#666">请输入真实姓名,最多10个字符</td>

             </tr>

              <tr>

                <td align="right" style="font-size:12px; width:80px"><a style="color:#F00">*</a>昵 称:</td>

                <td><input type="text"></td>

                <td  colspan="2" style="font-size:12px; color:#666">请输入昵称,最多30个字符</td>

             </tr>

             <tr>

                <td align="right" style="font-size:12px; width:80px"><a style="color:#F00">*</a>性 别:</td>

                <td colspan="3" style="font-size:12px"><input type="radio" name="us">男<input type="radio" name="us">女</td>

             </tr>

              <tr>

                <td align="right" style="font-size:12px; width:80px"><a style="color:#F00">*</a>所在地:</td>

                <td colspan="3">

                <select style="width:150px">

                    <option selected>请选择(省)</option>

                        <option>广东省</option>

                    </select>

                    <select>

                    <option selected>请选择(市)</option>

                        <option>广州市</option>

                    </select>

                </td>

             </tr>

             <tr>

                <td align="right" style="font-size:12px; width:80px"><a style="color:#F00">*</a>固定电话:</td>

                <td><input type="text"></td>

                <td  colspan="2" style="font-size:12px; color:#666">最多12个字符,例如:02012345678</td>

             </tr>

             <tr>

                <td align="right" style="font-size:12px; width:80px"><a style="color:#F00">*</a>传 真:</td>

                <td><input type="text"></td>

                <td  colspan="2" style="font-size:12px; color:#666">最多12个字符,例如:02012345678</td>

             </tr>

              <tr>

                <td align="right" style="font-size:12px; width:80px"><a style="color:#F00">*</a>地 址:</td>

                <td><input type="text"></td>

                <td  colspan="2" style="font-size:12px; color:#666">请填写正确的地址</td>

             </tr>

              <tr>

                <td align="right" style="font-size:12px; width:80px"><a style="color:#F00">*</a>邮政编码:</td>

                <td><input type="text"></td>

                <td colspan="2" style="font-size:12px; color:#666">最多6个字符,例如:123456</td>

             </tr>

             <tr>

                <td align="right" style="font-size:12px; width:80px"><a style="color:#F00">*</a>服务条款:</td>

                <td colspan="3">

                <textarea cols="60" rows="8"></textarea>

                </td>

             </tr>

             <tr>

                <td colspan="4" style="font-size:12px" align="center"><a style="color:#F00">点击线面“我接受”按钮,即表示您同意上面的服务条款和隐私政策</a></td>

             </tr>

             <tr>

                <td colspan="4" style="font-size:12px" align="center"><a style="color:#F00">提醒:您是否已详细阅读并同意关于服务条款?同意,请点击下满:</a></td>

             </tr>

                <td colspan="4" align="center"><input type="submit" value="我接受,创建我的用户"></td>

             </tr>

             </table>

            </td>           

    </table>

</body>

</html>



转载于:https://my.oschina.net/zhouhang0907/blog/532714

  • 4
    点赞
  • 12
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值