图像按钮: 把index---》indexDo页面上进行处理
type="image" 图像提交按钮
src="imgs/1.jpg" 图像的url 遵循路径规则
提交按钮:
type="submit" 提交按钮
value="提交" 按钮上的文字 默认值
重置按钮: 把同一个from中的元素,都还原成默认值
type="reset" 重置按钮
value="重置" 按钮上的字
普通按钮: 为其他语言提供服务的
type="button" 自定义按钮
value="点点看" 按钮上的字
案例代码:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>
<body>
<form action="indexDo.html" method="get">
用户名<input type="text" name="uName"><br />
密码<input type="password" name="uPwd"><br />
<input type="image" src="imgs/1.jpg"> <br />
<input type="submit" value="提交"><br />
<input type="reset" value="重置"><br />
<input type="button" value="点点看">
</form>
</body>
如需转载,请注明文章出处和来源网址:http://www.divcss5.com/html/h14133.shtml