HTML重置按钮不行
<bodyonload="createCode()"><divclass="dowebok"><divclass="logo"><h1align="center">雪人邮...
<body onload="createCode()">
<div class="dowebok">
<div class="logo">
<h1 align="center">雪人邮箱</h1>
<h2 align="center" id="a2">注册</h2>
</div>
<div class="form-item">
用户名:<input id="username" type="text" autocomplete="off" placeholder="新建账号">
</div>
<div class="form-item">
密码: <input id="password" type="password" autocomplete="off" placeholder="创建密码">
</div>
<div class="form-item">
确认密码: <input id="password" type="password" autocomplete="off" placeholder="确认密码">
</div>
<div class="yz">
<form id="form1" runat="server" onsubmit="validateCode()">
</div>
<div class="yz">
<form id="form1" runat="server" onsubmit="validateCode()">
<div>
<table border="0" cellspacing="5" cellpadding="5" >
<tr>
<td></td><td> <div class="code" id="checkCode" onclick="createCode()" ></div></td>
<td><a href="#" onclick="createCode()">看不清换一张</a></td>
</tr>
<tr>
<td>验证码:</td><td><input style="float:left;" type="text" id="inputCode" /></td><td>请输入验证码</td></tr>
</table>
</div>
</form>
</div>
<br><div class="form-item" align="center"><button id="submit">确 认</button>
<button id="submit" type="reset">重 置</button></div>
</div>
</div>
<canvas id="p1" width="1024" height="1000"></canvas>
</body> 展开
<div class="dowebok">
<div class="logo">
<h1 align="center">雪人邮箱</h1>
<h2 align="center" id="a2">注册</h2>
</div>
<div class="form-item">
用户名:<input id="username" type="text" autocomplete="off" placeholder="新建账号">
</div>
<div class="form-item">
密码: <input id="password" type="password" autocomplete="off" placeholder="创建密码">
</div>
<div class="form-item">
确认密码: <input id="password" type="password" autocomplete="off" placeholder="确认密码">
</div>
<div class="yz">
<form id="form1" runat="server" onsubmit="validateCode()">
</div>
<div class="yz">
<form id="form1" runat="server" onsubmit="validateCode()">
<div>
<table border="0" cellspacing="5" cellpadding="5" >
<tr>
<td></td><td> <div class="code" id="checkCode" onclick="createCode()" ></div></td>
<td><a href="#" onclick="createCode()">看不清换一张</a></td>
</tr>
<tr>
<td>验证码:</td><td><input style="float:left;" type="text" id="inputCode" /></td><td>请输入验证码</td></tr>
</table>
</div>
</form>
</div>
<br><div class="form-item" align="center"><button id="submit">确 认</button>
<button id="submit" type="reset">重 置</button></div>
</div>
</div>
<canvas id="p1" width="1024" height="1000"></canvas>
</body> 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询