<form action="/example/demo_form.aspx" method="get">
<p>First name: <input type="text" name="fname" /></p>
<p>Last name: <input type="text" name="lname" /></p>
<input type="image" src="/img/eg_submit.jpg" alt="Submit" />
<p>请在这幅图像上单击,输入会发送到服务器上名为 "demo_form.aspx" 的页面。</p>
<p>注释:如果 type 属性设置为 image,当用户单击图像时,浏览器将以像素为单位,将鼠标相对于图像边界的偏移量发送到服务器,其中包括从图像左边界开始的水平偏移量,以及从图像上边界开始的垂直偏移量。</p>