如何在 PayPal 按钮图像前创建换行符?
How do I create a line break before the image of a PayPal button?
所以,我已经尝试过 p 和 br 标签,但出于某种原因没有任何改变。如何在选项后创建段落?所以图像跳到下一行......
我很擅长编码,有人可以帮助我吗?
这是我正在使用的代码:
<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="4G3U9LF2TYKBS">
<table>
<tr>
<td>
<input type="hidden" name="on0" value="Style">Style</td>
<td>
<select name="os0">
<option value="Male">Male</option>
<option value="Female">Female</option>
</select>
</td>
<td>
<input type="hidden" name="on1" value="Color">Color</td>
<td>
<select name="os1">
<option value="White">White</option>
<option value="Black">Black</option>
</select>
</td>
<td>
<input type="hidden" name="on2" value="Size">Size</td>
<td>
<select name="os2">
<option value="S">S</option>
<option value="M">M</option>
<option value="L">L</option>
<option value="XL">XL</option>
<option value="2XL">2XL</option>
</select>
</td>
<td>
<input type="image" src="http://static1.squarespace.com/static/537a5c42e4b0f3418c1f0939/t/54f0fac5e4b0c3d27ffb863e/1425078981013/Add+to+cart+01B.jpg" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/pt_BR/i/scr/pixel.gif" width="1" height="1">
</td>
</tr>
</table>
</form>
请看linkJSFIDDLE
您需要为 paypal 按钮设置单独的 tr
<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="4G3U9LF2TYKBS">
<table>
<tr>
<td>
<input type="hidden" name="on0" value="Style">Style</td>
<td>
<select name="os0">
<option value="Male">Male</option>
<option value="Female">Female</option>
</select>
</td>
<td>
<input type="hidden" name="on1" value="Color">Color</td>
<td>
<select name="os1">
<option value="White">White</option>
<option value="Black">Black</option>
</select>
</td>
<td>
<input type="hidden" name="on2" value="Size">Size</td>
<td>
<select name="os2">
<option value="S">S</option>
<option value="M">M</option>
<option value="L">L</option>
<option value="XL">XL</option>
<option value="2XL">2XL</option>
</select>
</td>
</tr>
<tr>
<td>
<input type="image" src="http://static1.squarespace.com/static/537a5c42e4b0f3418c1f0939/t/54f0fac5e4b0c3d27ffb863e/1425078981013/Add+to+cart+01B.jpg" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"/>
<img alt="" border="0" src="https://www.paypalobjects.com/pt_BR/i/scr/pixel.gif" width="1" height="1"/>
</td>
</tr>
</table>
</form>
所以,我已经尝试过 p 和 br 标签,但出于某种原因没有任何改变。如何在选项后创建段落?所以图像跳到下一行...... 我很擅长编码,有人可以帮助我吗? 这是我正在使用的代码:
<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="4G3U9LF2TYKBS">
<table>
<tr>
<td>
<input type="hidden" name="on0" value="Style">Style</td>
<td>
<select name="os0">
<option value="Male">Male</option>
<option value="Female">Female</option>
</select>
</td>
<td>
<input type="hidden" name="on1" value="Color">Color</td>
<td>
<select name="os1">
<option value="White">White</option>
<option value="Black">Black</option>
</select>
</td>
<td>
<input type="hidden" name="on2" value="Size">Size</td>
<td>
<select name="os2">
<option value="S">S</option>
<option value="M">M</option>
<option value="L">L</option>
<option value="XL">XL</option>
<option value="2XL">2XL</option>
</select>
</td>
<td>
<input type="image" src="http://static1.squarespace.com/static/537a5c42e4b0f3418c1f0939/t/54f0fac5e4b0c3d27ffb863e/1425078981013/Add+to+cart+01B.jpg" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/pt_BR/i/scr/pixel.gif" width="1" height="1">
</td>
</tr>
</table>
</form>
请看linkJSFIDDLE
您需要为 paypal 按钮设置单独的 tr
<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="4G3U9LF2TYKBS">
<table>
<tr>
<td>
<input type="hidden" name="on0" value="Style">Style</td>
<td>
<select name="os0">
<option value="Male">Male</option>
<option value="Female">Female</option>
</select>
</td>
<td>
<input type="hidden" name="on1" value="Color">Color</td>
<td>
<select name="os1">
<option value="White">White</option>
<option value="Black">Black</option>
</select>
</td>
<td>
<input type="hidden" name="on2" value="Size">Size</td>
<td>
<select name="os2">
<option value="S">S</option>
<option value="M">M</option>
<option value="L">L</option>
<option value="XL">XL</option>
<option value="2XL">2XL</option>
</select>
</td>
</tr>
<tr>
<td>
<input type="image" src="http://static1.squarespace.com/static/537a5c42e4b0f3418c1f0939/t/54f0fac5e4b0c3d27ffb863e/1425078981013/Add+to+cart+01B.jpg" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"/>
<img alt="" border="0" src="https://www.paypalobjects.com/pt_BR/i/scr/pixel.gif" width="1" height="1"/>
</td>
</tr>
</table>
</form>