zoukankan      html  css  js  c++  java
  • html表单练习(讲义中的方法)

    用table作框体固定位置结构

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>无标题文档</title>
    </head>

     

    <body>
    <table border="0">
    <tr>
    <td>邮箱:</td>
    <td><input type="text" /></td>
    </tr>
    <tr>
    <td>&nbsp;</td>
    <td>需要通过邮箱激活账户,不支持sohu,21.cn,sogou的邮箱</td>
    </tr>
    <tr>
    <td>登录用户名:</td>
    <td><input type="text"/></td>
    </tr>
    <tr>
    <td>&nbsp;</td>
    <td>仅在登录时使用,字符数不少于4个</td>
    </tr>
    <tr>
    <td>显示名称:</td>
    <td><input type="text"/></td>
    </tr>
    <tr>
    <td>&nbsp;</td>
    <td>即昵称,字符不少于2个</td>
    </tr>
    <tr>
    <td>密码:</td>
    <td><input type="password"/></td>
    </tr>
    <tr>
    <td>确认密码:</td>
    <td><input type="password"/></td>
    </tr>
    <tr>
    <td>&nbsp;</td>
    <td>至少8位,必须包含字母、数字、特殊字符</td>
    </tr>
    <tr>
    <td>性别:</td>
    <td><input type="radio" name="sex"/>男</td>
    </tr>
    <tr>
    <td>&nbsp;</td>
    <td><input type="radio" name="sex"/>女</td>
    </tr>
    <tr>
    <td>喜好:</td>
    <td><select size="1">
    <option selected="selected">听音乐</option>
    <option>看电影</option>
    <option>玩游戏</option>
    <option>看电视剧</option>
    <option>旅游</option>
    <option>运动健身</option>
    </select></td>
    </tr>
    <tr>
    <td>&nbsp;</td>
    <td><input type="submit" value="注册"/></td>
    </tr>
    </table>
    </body>
    </html>

     

  • 相关阅读:
    大叔程序员的第六天 @布局&eclipse配置文件
    20130305Android自定义Button按钮显示样式
    solr学习(1)
    Lucence3.0学习(1)
    Liskov Substitution Principle (LSP) OO设计的里氏替换原则
    对于高内聚低耦合的理解
    ASP.NET 网站中的共享代码文件夹
    二探String类型
    初探String类型
    版本控制初探1
  • 原文地址:https://www.cnblogs.com/xiongxiaobai/p/5298937.html
Copyright © 2011-2022 走看看