zoukankan      html  css  js  c++  java
  • 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以上版本还行·····建议使用以上三个测试。
  • 相关阅读:
    Listener:监听器
    go语言基础数据类型
    Envoy基于文件系统的RDS动态配置
    git常用操作
    c语言 assert(转)
    浅谈可重入函数与不可重入函数【转】
    静态全局变量和全局变量的区别(转)
    c语言 排序(转)
    c语言刷 队列题记录
    c语言刷 链表题记录
  • 原文地址:https://www.cnblogs.com/lixingle/p/3313022.html
Copyright © 2011-2022 走看看