首页 > 代码库 > 按钮,图像提交

按钮,图像提交

示例 1 : 

重置按钮

<form action="/study/login.jsp">
账号:<input type="text" name="name"> <br/>
密码:<input type="password" name="password" > <br/>
<input type="submit" value="提交">
<input type="reset" value="重置">
</form>
 

账号:
密码:

 

示例2:图像提交

<form action="/study/login.jsp">
账号:<input type="text" name="name"> <br/>
密码:<input type="password" name="password" > <br/>
<input type="image" src="http://how2j.cn/example.gif">
</form>

账号:
密码:

 

 

 示例 3: 

button里是文字

<button>按钮</button>

 示例4:button里是图片

<button><img src="http://how2j.cn/example.gif"/></button>

按钮,图像提交