日期:2014-05-17  浏览次数:20708 次

html5(test1.提交表单)
<html>
  <head>
   <base href="<%=basePath%>">
    
    <title>LoginDifferent.jsp</title>
  
  </head>
  
  <body>
  	<h2 style="text-align:center">注册界面</h2>
  	<form  onsubmit="return validate();" action="LoginAndServlet" method="post">
    <fieldset>
    	<div id="login_1">
    	<ul id="login_1">
        	<li>        		
        		<label for="username">昵称:</label>
            	<input type="text" id="username"  required="required" name="username" id="username" onblur="AjaxSubmit();" onfocus="Submit()"/><br>
            	</font><div id="Ajax"></div>
            </li>
            <li><label for="email">邮箱:</label>
            	<input type="email" id="email"  required="required" name="email" />          
            </li>
        	 <li><label for="password">密码:</label>
            	 <input type="password" id="password"  required="required" placeholder="请填写密码" name="password" />          
             </li>
             <li><label for="repassword">确认密码:</label>
            	 <input type="password" id="repassword"  required="required" placeholder="请填写密码" name="repassword" />          
             </li>
            
            <li><label for="birthday">出生年月:</label>
            	<input type="date" id="birthday"  name="birthday"/>          
            </li>
             <li><label for="authority">身份:</label>
                 <select name="authority">
			        <option value="1">普通用户</option>
			        <option value="2">管理员</option>		
		         </select>     
            </li>
        
        	<li><label for="mysubmit">提交</label>
            	<input type=submit id="mysubmit"  name="mysubmit" value="提交"/>
       
            </li>
        </ul>
     	</div>
    </fieldset>
</form>
  	
   

  </body>
</html>

html5. 在不同的浏览器解析情况不同。一般在,Chrome,opero和safari中能完美显示。在ie8以上版本还行·····建议使用以上三个测试。