简体   繁体   English

图像提交在IE中不起作用

[英]Image Submit Not working in IE

I have the following code submitting a form 我有以下代码提交表格

<div class="free-download">
   <input name="method_free"
      value="<TMPL_VAR lang_free_download>"
      type="image"
      src="images/free-download.png"
      alt="<TMPL_VAR lang_free_download>" />
</div>

it's working fine in firefox, but in internet explorer it just loads the same page for some reason, any ideas? 它在firefox中运行良好,但在Internet Explorer中它只是出于某种原因加载相同的页面,任何想法?

Thanks 谢谢

Try the form attribute in the input tag. 尝试输入标记中的form属性。

<input type="image" form="(ID of the form it belongs to)">

Sometimes inputs can get lost in layouts. 有时输入会在布局中丢失。

Have you checked to see if you are getting method_free_x and method_free_y posted back to you? 您是否检查过是否将method_free_x和method_free_y发回给您? Seems when using an image to submit, you get the X and Y coordinates that were clicked. 似乎在使用图像提交时,您将获得单击的X和Y坐标。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM