2011-10-03 70 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>