簡體   English   中英

如何格式化PayPal“立即購買”生成的代碼?

[英]How can I format PayPal “Buy Now” generated code?

首先,“立即購買”貝寶按鈕可以正常工作,但它們都垂直放置,一個接一個。 在生成貝寶(Paypal)的代碼之前,我將它們很好地對稱地組織成兩行。

這是它們生成的按鈕之一的示例:

<form 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="QEB6T733SAMR2">
<input type="image" src="http://www.teegar.net/images/home/ball-1.gif" 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>

其余按鈕以這種方式繼續,但數量不同。 我試圖從最后一個按鈕之外的所有按鈕中刪除</form>標記,這使我可以設置圖形格式,但發現所有按鈕都將我的最大數量放入了貝寶購物車。

我知道我仍然是HTML新手,但希望能得到一些幫助。

網站

您是否嘗試過將它們放在自己單獨的單元格中的表中?

就像Cistoran所說的那樣使用桌子

<table border="0" width="what ever you want the width to be in percentage or pixels">
<tr>
<td>
<form 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="QEB6T733SAMR2">
<input type="image" src="http://www.teegar.net/images/home/ball-1.gif" 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>
</td>
<td>
then the next one and so on so on
</td>
</tr>
</table>

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM