Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/design-patterns/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 如何解决去除按钮标签的问题?_Html - Fatal编程技术网

Html 如何解决去除按钮标签的问题?

Html 如何解决去除按钮标签的问题?,html,Html,我因为使用这些代码而遇到麻烦 <input type="image" name="btn_signup_free" id="btn_signup_free" /> 在firefox中显示得很好,但在internet explorer和google chrome中,在左上角出现了“提交”,我无法删除它。 我放置了css中的背景图像。 谢谢。为什么不使用jQuery呢?只需放置如下图像: <form method="post"> <img src="path_to

我因为使用这些代码而遇到麻烦

<input type="image" name="btn_signup_free" id="btn_signup_free" />

在firefox中显示得很好,但在internet explorer和google chrome中,在左上角出现了“提交”,我无法删除它。 我放置了css中的背景图像。
谢谢。

为什么不使用jQuery呢?只需放置如下图像:

<form method="post">
<img src="path_to_image/image.jpg" id="executeForm" alt="Some info about img if its not loaded" />
</form>

<script type="text/javascript">
$("#executeForm").click(function()
{
$(this).closest("form").submit();

});
</script>

$(“#executeForm”)。单击(函数()
{
$(this).最近的(“表单”).submit();
});

最近,我想使用img作为输入已经很过时了。

从您展示的代码来看,没有理由显示带有submit的按钮。你能展示更多的代码(包括相关的CSS)吗?