2011-10-03 74 views
0

首先,現在購買paypal按鈕可以正常工作,但它們都是垂直放置,一個放在另一個上面。在生成PayPal代碼之前,我將它們組織得很好,對稱地排成兩行。如何格式化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>標籤,這使得我可以格式化圖形,只是發現所有按鈕都將我的最高數量放在paypal購物車中。

我知道我還是一個HTML newby,但希望我能得到一些幫助。

website

回答

0

您是否嘗試過把它們放到一個表中自己的單個細胞?

0

像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>