案例:html/html5 案例     状态:可编辑再运行    进入竖版
 运行结果 
x
 
1
<html>
2
<body>
3
4
<form action="/example/demo_form.aspx" method="get">
5
  <p>First name: <input type="text" name="fname" /></p>
6
  <p>Last name: <input type="text" name="lname" /></p>
7
  <input type="image" src="/img/eg_submit.jpg" alt="Submit" />
8
</form>
9
10
<p>请在这幅图像上单击,输入会发送到服务器上名为 "demo_form.aspx" 的页面。</p>
11
12
<p>注释:如果 type 属性设置为 image,当用户单击图像时,浏览器将以像素为单位,将鼠标相对于图像边界的偏移量发送到服务器,其中包括从图像左边界开始的水平偏移量,以及从图像上边界开始的垂直偏移量。</p>
13
14
</body>
15
</html>