我应该向图像添加提交操作。所以在主页上,我已经完成了 <input type="submit" class="go-button" name="submit"/>
在
在CSS中我写了
.go-button {
margin-right:7px;
background: transparent url(../images/go.gif);
width:26px;
height:20px;
border:0px;
overflow:hidden;
}
但问题是我在 GO 图像上收到提交查询。 我不想要那个。 请帮助我。
最佳答案
提交按钮也可以定义为图像:
<input type="image" src="image.png" alt="Alt text" />
关于html - 如何向图像添加提交操作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2605608/