HTML输入(type = image)不适用于Firefox 4 [英] HTML Input (type=image) not working on Firefox 4

查看:86
本文介绍了HTML输入(type = image)不适用于Firefox 4的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 < input type =imagevalue =Deletetitle =Deletename =cmd_deletesrc =bin / images / common / delete.png/> ; 

上述HTML代码适用于我的应用程序中的删除按钮。问题在于,此按钮在Firefox 4中不起作用,但适用于其他浏览器。您可以使用< button name =cmd_delete的值=>< img src =../>< / button> 而不是输入。


<input  type="image"value="Delete" title="Delete" name="cmd_delete" src="bin/images/common/delete.png"/>

The above HTML code is for a Delete button in my application. The problem is that this button does not work in Firefox 4 but works in other browsers. Please how can I fix this.

解决方案

You could use <button name="cmd_delete" value=""><img src=".."/></button> instead of input.

这篇关于HTML输入(type = image)不适用于Firefox 4的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆