本帖最后由 杨兴庭 于 2013-7-22 21:28 编辑
- <!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>
- <fieldset>
- <legend>注册区域</legend>
- <table border="1" bordercolor="#0066CC" width="40%" cellpadding="10" cellspacing="0">
- <form>
- <tbody>
- <tr>
- <td colspan="2" align="center">信息注册页面</td>
- </tr>
- <label accesskey="u" for="userid">//这里明明跟毕向东老师写的一样,怎么就没有效果呢?
- <tr> //就是在行中任意位置点一下,光标就定在文本框内
- <td width="25%">用户名(U):</td>
- <td><input type="text" name="user" id="userid" /></td>
- </tr>
- </label>
- <tr>
- <td>密码:</td>
- <td><input type="password" name="psw" /></td>
- </tr>
- <tr>
- <td>确认密码:</td>
- <td><input type="password" name="repsw" /></td>
- </tr>
- <tr>
- <td>性别:</td>
- <td>
- <input type="radio" name="sex" value="nan" />男
- <input type="radio" name="sex" value="nv" />女
- </td>
- </tr>
- <tr>
- <td>技术:</td>
- <td>
- <input type="checkBox" name="tech" value="java" />java
- <input type="checkBox" name="tech" value="jsp" />jsp
- <input type="checkBox" name="tech" value="servlet" />servlet
- </td>
- </tr>
- <tr>
- <td>国家:</td>
- <td>
- <select name="country">
- <option value="none" >----选择国家----</option>
- <option value="cn" >中国</option>
- <option value="en" >英国</option>
- <option value="fr" >法国</option>
- </select>
- </td>
- </tr>
- <tr>
- <td colspan="2" align="center">
- <input type="submit" value="提交数据" />
- <input type="reset" value="重置表单" />
- </td>
- </tr>
- </tbody>
- </form>
- </table>
- </fieldset>
- </body>
- </html>
复制代码 |