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)吗?