方法一:用image类型的input控件。
<form name="demo" method="get" action="login.asp">
<input name="username" type="text">
<input name="password" type="password">
<input type="image" src="button.gif" name="img">
</form>
方法二:在图片上加上脚本控制的。
<form name="demo" method="get" action="login.asp">
<input name="username" type="text">
<input name="password" type="password">
</form>
<img src="button.gif" οnclick="demo.submit()">
用第二种方法时如果想在鼠标移上图片时变成手形,可以加上CSS设置cursor属性为hand。