Demo.html
1 <!DOCTYPE html> 2 <html> 3 4 <head> 5 <meta charset="UTF-8"> 6 <title></title> 7 </head> 8 9 <body> 10 <form action="/demo/show12.do" method="post"> 11 <div>姓名:</div> 12 <div> 13 <input name="name" value="张三" /> 14 </div> 15 <div class="clear"></div> 16 <div>年龄:</div> 17 <div> 18 <input name="age" value="20" /> 19 </div> 20 <div class="clear"></div> 21 <div>收入:</div> 22 <div> 23 <input name="income" value="100000" /> 24 </div> 25 <div class="clear"></div> 26 <div>结婚:</div> 27 <div> 28 <input type="radio" name="isMarried" value="true" checked="checked" />是 29 <input type="radio" name="isMarried" value="false" />否 30 </div> 31 <div class="clear"></div> 32 <div>兴趣:</div> 33 <div> 34 <input type="checkbox" name="interests" value="听歌" checked="checked" />听歌 35 <input type="checkbox" name="interests" value="书法" checked="checked" />书法 36 <input type="checkbox" name="interests" value="看电影" checked="checked" />看电影 37 </div> 38 <div class="clear"></div> 39 <div> 40 <input type="submit" value="提交表单" /> 41 </div> 42 </form> 43 </body> 44 45 </html>
效果: