<form action="" method="get">
<input type="text" name="lname"   id="NodeID"/> <input type="submit" value="Submit" /></form>
这个submit可不可以自己写啊 用<img src=地址  onclick=""/>可以吗   

解决方案 »

  1.   

    如果要提交表单,需要type='image'<form action="" method="get">
    <input type="text" name="lname" id="NodeID"/><input type="image" src="1.jpg"/></form>
      

  2.   

    完全可以 如果用图片代替的话<form action="" method="get" name="form1"><input type="text" name="lname" id="NodeID"/>
    <!-<input type="submit" value="Submit" /> --> <input name="submitImg" type="image" src="i2.jpg" onclick="form1.action = '你的url';form1.action.submit()"></form>
      

  3.   

    还有一种做法,就是用css给你的按扭加上背景图,设置样式
      

  4.   

    <style type="text/css">
    .btn{
        background-image: url("http://forum.csdn.net/PointForum/ui/styles/default/topic/bgButton.gif");
        border-width: 0;
        color: #FFFFFF;
        height: 22px;
        line-height: 20px;
        width: 65px;
    }
    </style>
    <form action="" method="get">
    <input type="text" name="lname" id="NodeID"/> <input type="submit" value="Submit" class="btn"/></form>
    csdn的做法