日期:2014-05-17  浏览次数:20565 次

图片作为登录按钮的问题
请教图片作为登录按钮的问题
在登录框 用图片作为登录按钮。
结果在谷歌里显示是有提交成功的,但是在IE和firfox都显示没有提交成功。
该怎么修改呢?
代码如下:

<form name="LoginForm" method="post" action="login3.php" onSubmit="return InputCheck(this)">
      <label for="username" class="label">帐 号</label>
      <input id="username" name="username" type="text" class="input" />
</p>
    <p>
      <label for="password" class="label">密 码</label>
      <input id="password" name="password" type="password" class="input" />
    </p>
    <p>
    <input type="image"  src="/pig/pig3.png" width="90" height="40"  id="submit" name="submit" value="submit" class="input" />
    <a href="reg.html"><img src="/pig/pig2.png" width="90" height="40" /></a>
    
    </form>



------解决方案--------------------
你可以改成
<input type="image"  src="/pig/pig3.png" width="90" height="40"  onclick="return InputCheck(this.form)" />
------解决方案--------------------
chrome没研究过,但ie/ff图片提交,服务器端应该没有submit这个变量的,而是坐标x, y