W3School TIY
编辑您的代码:
<!DOCTYPE HTML> <html> <body> <form action="http://www.layui1.com/example/html5/demo_form.asp" method="get"> First name: <input type="text" name="fname" /><br /> Last name: <input type="text" name="lname" /><br /> <input type="image" src="../i/eg_submit.jpg" alt="Submit" width="128" height="128"/> </form> <p><b>注释:</b>默认地,image 输入类型会发生点击图像按钮时的 X 和 Y 坐标。</p> </body> </html>
查看结果: