• 使用HTML设计注册界面


    网站注册页面案例

    需求分析

    编写一个HTML页面, 显示效果如图所示

    技术分析

    表单标签

    • action : 直接提交的地址
    • method :
      get 方式 默认提交方式 ,会将参数拼接在链接后面 , 有大小限制 ,4k
      post 方式 会将参数封装在请求体中, 没有这样的限制
    • input :

    type: 指定输入项的类型
    text : 文本
    password : 密码框
    radio : 单选按钮
    checkbox : 复选框
    file : 上传文件
    submit : 提交按钮
    button : 普通按钮
    reset : 重置按钮
    hidden : 隐藏域

    date : 日期类型
    tel : 手机号
    number : 只允许输入数字

    placeholder : 指定默认的提示信息
    name : 在表单提交的时候,当作参数的名称
    id : 给输入项取一个名字, 以便于后期我们去找到它,并且操作它

    textarea : 文本域, 可以输入一段文本
    cols : 指定宽度
    rows : 指定的是高度

    select : 下拉列表
    option : 选择项

    步骤分析

    1. logo部分
    2. 导航栏
    3. 注册部分
    4. 页脚图片
    5. 网站声明信息

    代码实现

    <form action="注册入门案例.html">
      <table width="60%" align="center"> 
        <tr>
          <td colspan="2"><font color="blue" size="5">会员注册</font> USER REGISTER</td>
        </tr>
        <tr>
          <td>用户名:</td>
          <td>
            <input type="text"  placeholder="请输入用户名"/>
          </td>
        </tr>
        <tr>
          <td>密   码:</td>
          <td>
            <input type="password"  placeholder="请输入密码"/>
          </td>
        </tr>
        <tr>
          <td>确认密码:</td>
          <td>
            <input type="password"  placeholder="请再次输入密码"/>
          </td>
        </tr>
        <tr>
          <td>email:</td>
          <td>
            <input type="text"  placeholder="请输入邮箱"/>
          </td>
        </tr>
        <tr>
          <td>姓名:</td>
          <td>
            <input type="text"  placeholder="请输入真实姓名"/>
          </td>
        </tr>
        <tr>
          <td>性别:</td>
          <td>
            <input type="radio" name="sex" /> 男
            <input type="radio" name="sex" /> 女
            <input type="radio" name="sex" /> 妖
          </td>
        </tr>
        <tr>
          <td>出生日期:</td>
          <td>
            <input type="date"  />
          </td>
        </tr>
        <tr>
          <td>验证码:</td>
          <td>
            <input type="text"  />
          </td>
        </tr>
        <tr>
          <td></td>
          <td>
            <input type="submit" value="注册"  />
          </td>
        </tr>
      </table>
    </form>
    

    网站后台页面展示案例

    框架标签:frameset
    注意: 使用了frameset必须将body删掉,否则页面会有问题
    cols:按列划分页面
    rows:按行划分页面

    frame常用属性:
    src: 引入的html文件路径
    name: 指定框架的名称

    框架中点击跳转

  • 相关阅读:
    LeetCode 227. Basic Calculator II
    LeetCode 224. Basic Calculator
    LeetCode 103. Binary Tree Zigzag Level Order Traversal
    LeetCode 102. Binary Tree Level Order Traversal
    LeetCode 106. Construct Binary Tree from Inorder and Postorder Traversal
    LeetCode 105. Construct Binary Tree from Preorder and Inorder Traversal
    LeetCode 169. Majority Element
    LeetCode 145. Binary Tree Postorder Traversal
    LeetCode 94. Binary Tree Inorder Traversal
    LeetCode 144. Binary Tree Preorder Traversal
  • 原文地址:https://www.cnblogs.com/zllk/p/12833722.html
Copyright © 2020-2023  润新知