1
<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
    <input type="hidden" name="cmd" value="_s-xclick">
    <input type="hidden" name="hosted_button_id" value="76BSEEPTFTS3KN">
    <input type="image" src="http://www.yorsitename.com/images/cartbutton.jpg" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
    <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>

这是图像按钮的代码。如何使用 CSS/HTML 按钮?Paypal 有他们的按钮和您自己创建的图像按钮。

4

2 回答 2

2

出于某种原因,如果您将<input type="image">元素更改<input type="button">为表单不会提交。相反,将其更改为<input type="submit">.

例子:

<input type="image" src="http://www.yorsitename.com/images/cartbutton.jpg" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">

改成

<input type="submit" class="css here" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!" value="Custom Button Text Here">

这对我有用

于 2014-03-03T17:57:31.417 回答
1

更改<input type="image"<input type="button"

于 2013-06-17T22:46:42.750 回答