<img src="http://files.jb51.net/file_images/article/201405/201405091054245.gif?201449105445" alt=""> <br>代码实现方式: <br><br><div class="msgheader"> <div class="right"><span style="CURSOR: pointer" onclick="copycode(getid('phpcode68'));"><u>复代码码</u></span></div>代码如下:</div> <div class="msgborder" id="phpcode68"> <br><!DOCTYPE html> <br><머리> <br><제목> 새 문서 </title> <br><meta name="Generator" content="EditPlus"> <br><meta name="저자" content=""> <br><meta name="키워드" content=""> <br><meta name="Description" content=""> <br><meta charset="utf-8"> <br><style type="text/css"> <br>div{ 너비:35%;여백-왼쪽:32%;} <br></style> <br></head> <br><본문> <br><div> <br><form class="f1" action="http://www.baidu.com" method="get" > <br><필드셋> <br><legend>表单的注册</legend> <br><테이블 너비=100% > <br><tbody> <br><tr ><td class=“left” width=40% align="right"><label for="t1">姓 이름:</label></td> <br><td class="right"><input type="text" id="t1" name="이름"></td> <br></tr> <br><tr><td class=“left” width=40% align="right"><label for="Password1">密 码:</label></td> <br><td class="right"><input id="Password1" type="password" name="Password" /></td> <br></tr> <br><tr><td class=“left” width=40% align="right"><label for="e1">邮 箱:</label></td> <br><td class="right"><input type="email" id="e1" name="youxiang" ></td> <br></tr> <br><tr><td class=“left” width=40% align="right"><label for="1">性 别:</label></td> <br><td class="right"><input type="radio" id="1" name="ssex" value="nan" />男<!-- name设置成一样的就行了--> <br><input type="radio" id="2" name="ssex" value="nv" />女 <br></td> <br></tr> <br><tr><td class=“왼쪽” 너비=40% align="오른쪽">地 区:</td> <br><td><select id="selc" name="place"> <br><option value="quanzhou">泉州</option> <br><option value="xiamen">厦门</option> <br><option value="zhangzhou" >漳州</option> <br></select> <br></td> <br></tr> <br><tr><td class=“left” width=40% align="right"><label for="txtarea">简 介:</label></td> <br><td><textarea id="txtarea"></textarea></td> <br></tr> <br><tr><td class=“왼쪽” 너비=40% align="오른쪽">兴 趣:</td> <br><td><input type="checkbox" id="cbox1" name="dushu" value="c1">读书 <br><input type="checkbox" id="cbox2" 이름 ="yundong" value="c2">运动 <br><input type="checkbox" id="cbox3"name="chihe" value="c3">吃喝 <br></td> <br></tr> <br><tr><td class=“왼쪽” 너비=40% align="오른쪽">上 传:</td> <br><td> <input type="file" id="f1" name="shangchuan" value="File1" /></td> <br></tr> <br><tr><td class=“왼쪽” width=40% align="right" rowspan=2> <br><input id="Submit1" type="submit" value="提 交" /> <br></td> <br><td> <input id="Reset1" type="reset" value="중계" /> <br></td> <br></tr> <br></tbody> <br></테이블> <br></fieldset> <br></form> <br></div> <br></body> <br></html> <br> </div> <br>注意其中的代码label实现的功能是使鼠标在点击文本的时候自动聚焦文本框里! <br><br><div class="msgheader"> <div class="right"><span style="CURSOR: pointer" onclick="copycode(getid('phpcode69'));"><u>复主代码</u></span></div>代码如下:</div> <div class="msgborder" id="phpcode69"> <br><label for="t1">姓 name:</label> <br> </div>