我編寫了一個表格,但由於某種原因,右列沒有與左列對齊。表格樣式問題
左列略微向下放置。這裏就是一個小提琴:http://jsfiddle.net/5Me4L/
代碼:
<table width='620'>
<tr>
<td width='310'>
<span style='font-size:21px; font-family:Arial, Helvetica, sans-serif; color:#00abbd; font-weight:bold'>Pay Monthly</span>
<table width='310' cellpadding='6' cellspacing='0' border='0' style='border-color:#00abbd; border-width:0px; border-style:solid; padding:3px'>
<tr bgcolor='#eeeeee'><td width='160'><p class='rates' style='color:#00abbd;'><strong>Call to Argentina</strong></p></td><td><p class='rates'>€ 3.88 /min</p></td></tr>
<tr><td><p class='rates' style='color:#00abbd;'><strong>Call to Malta</strong></p></td><td><p class='rates'>€ 3.40/min</p></td></tr>
<tr bgcolor='#eeeeee'><td><p class='rates' style='color:#00abbd;'><strong>Call to Zone 4 </strong> </p></td><td><p class='rates'>€ 3.88 /min</p></td></tr>
<tr><td><p class='rates' style='color:#00abbd;'><strong>Calling other Zones</strong></p></td><td><p class='rates'>€ 4.00 /min</p></td></tr>
<tr bgcolor='#eeeeee'><td><p class='rates' style='color:#00abbd;'><strong>Receiving Calls</strong></p></td><td><p class='rates'>€ 1.46 /min</p></td></tr>
<tr><td>
<p class='rates' style='color:#00abbd;'><strong>Data</strong></p></td><td><p class='rates'> € 17.48</p>
</td></tr>
<tr bgcolor='#eeeeee'><td><p class='rates' style='color:#00abbd;'><strong>SMS</strong></p></td><td><p class='rates'>€ 0.39</p></td></tr>
<tr><td><p class='rates' style='color:#00abbd;'><strong>MMS</strong></p></td>
<td><p class='rates'>€ 0.22 + €17.48</p></p></td></tr>
</table>
<td width='310'>
<span style='font-size:21px; font-family:Arial, Helvetica, sans-serif; color:#00abbd; font-weight:bold'>Pay Monthly</span>
<table width='310' cellpadding='6' cellspacing='0' border='0' style='border-color:#00abbd; border-width:0px; border-style:solid; padding:3px'>
<tr bgcolor='#eeeeee'><td width='160'><p class='rates' style='color:#00abbd;'><strong>Call to Argentina</strong></p></td><td><p class='rates'>€ 3.88 /min</p></td></tr>
</tr>
</table>
這是它應該如何看:
您的幫助球員非常感謝。
**你爲什麼在桌子上有桌子嗎?**這不僅僅是一個兩列桌子嗎? –
@Paulie_D我做到了這一點,所以我可以很容易地將行放在內表 – user3492795
,但在小提琴**右**列稍微放下。你有問題嗎? – Jere