English 中文(简体)
问题
原标题:Problem while Merging Image with Button
  • 时间:2010-09-23 16:44:48
  •  标签:
  • html

http://www.codetoad.com/html/buttons/image_submit_button.asp” rel=“nofollow noreferer” http://www.codetoad.com/html/buttons/image_submit_button.asp。

当你点击 but子时,你就会把你带去。

http://www.codetoad.com/html/buttons/image_submit_button.asp?x=118&y=22

最终如何消除“x=118&y=22”。 由于我的形式是正确的,而且由于这一形式改变了我的准则。

请帮助

最佳回答

这符合以下标准行为:<代码><input category=“image”/>要素,我不认为你可以改变。

您可使用<代码><button> tag:

<button type="submit">
  <img src="someimage.jpg" />
</button>

<><>Edit>: 如果你不希望它像一个 but子一样,那么你就可以利用CSS来消除纽扣:

button {
  border-style: none;
  background-color: transparent;
}
问题回答

我认为,这是与这种行为作斗争的行为,是你可以做的,在投入类型上适用。 拥有背景财产。


< input type=submit id= submitButton  value= submit  />


<style>
#submitButton {
  width: 100px;
  height: 55px;
  padding: 55px 0 0;
  margin: 0;
  border: 0;
  background: transparent url(pathtoyourimage/image.gif) no-repeat center top;
  overflow: hidden;
  cursor: pointer; /* hand-shaped cursor */
  cursor: hand; /* for IE 5.x */
}
</style>





相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签