form中把图片设为按钮

提交按钮sumbit

<input type="image" src="图片路径">//type="image"默认是sumbit,不用再添加onclick事件提交,否则会发生表单被提交两次的情况

重置按钮reset

<input type="image" src="图片路径" onclick="reset()">//在onclick事件中添加重置方法

  

原文地址:https://www.cnblogs.com/duyadong/p/12117046.html