2014-10-01 78 views
-1

有一个在我的网站上简单的形式插入图像提交按钮

<form> 
<input type="textbox" class="Name"> 
-------------- 
<input type="submit" class="Button" value="Update"> 
</form> 

我必须在提交按钮与文字“更新”沿着插入图像。(不使用background-image属性)

+0

使用''

+0

或者您可以使用新的'input [type = image]' - http://www.w3.org/TR/html-markup/input.image.html – 2014-10-01 15:03:22

+0

使用

回答

1

使用<button>像这样:

<button type="submit"><img src="your/path" />Update</button> 
+0

是啊!有效。 thnx – 2014-10-01 15:10:37

+1

你能接受答案然后plz :)谢谢 – 2014-10-01 15:12:25