<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="max-width:90%" onclick="copycode(getid('phpcode68'));"><u>复制代码</u></span></div></div> <div class="msgborder" id="phpcode68"> <br><br><br>复制代码<br><br><br>代䎠码><!DOCTYPE html> <br><kepala> <br><tajuk> Dokumen Baharu </title> <br><meta name="Generator" content="EditPlus"> <br><meta name="Author" content=""> <br><meta name="Kata Kunci" content=""> <br><meta name="Description" content=""> <br><meta charset="utf-8"> <br><style type="text/css"> <br>div{ lebar:35%;margin-kiri:32%;} <br></style> <br></head> <br><badan > <br><div> <br><form class="f1" action="http://www.baidu.com" method="get" > <br><set medan > <br><legend>表单的注册</legend> <br><lebar jadual=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="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=“left” width=40% align="right">地 区:</td> <br><td><pilih id="selc" name="place"> <br><nilai pilihan="quanzhou">泉州</option> <br><nilai pilihan="xiamen">厦门</option> <br><nilai pilihan="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=“left” width=40% align="right">兴 趣:</td> <br><td><input type="checkbox" id="cbox1" name="dushu" value="c1">读书 <br><input type="checkbox" id="cbox2" name ="yundong" value="c2">运动 <br><input type="checkbox" id="cbox3"name="chihe" value="c3">吃喝 <br></td> <br></tr> <br><tr><td class=“left” width=40% align="right">上 传:</td> <br><td> <input type="file" id="f1" name="shangchuan" value="Fail1" /></td> <br></tr> <br><tr><td class=“left” 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></meja> <br></fieldset> </div></form> <br></div> <br></badan> <br></html> <div class="msgheader"><div class="right"><span style="CURSOR: pointer" onclick="copycode(getid('phpcode69'));">注意其中的代码label实现的功能是使鼠标在点击文本的时候自动聚燦! 🎜><u></u>复制代码</span></div></div>代码如下:<div class="msgborder" id="phpcode69"> <br><label untuk="t1">姓 名:</label> <br> </div>