我在父表中創建了2個子表。除Outlook 2007/2010/2013和2016之外,所有電子郵件客戶端的表格寬度都很好。右側列向右側移動,忽略兩側的TD寬度(5%)。任何人都可以幫我解決這個問題嗎?在Outlook 2007/2010/2013中TD的寬度被忽略
下面是代碼:
`
<!-- Second slider -->
<tr>
<td align="center" valign="top">
<table class="parentTable" border="0" cellpadding="0" cellspacing="0" style="table-layout:fixed;">
<tr>
<!-- 1st column - spacing -->
<!-- <td valign="top" width="5%"> </td> -->
<!-- 2nd column - left section -->
<td valign="top" width="50%">
<table class="childTable" border="0" cellpadding="0" cellspacing="0" style="table-layout:fixed;border:none;border-collapse:collapse;mso-table-lspace:0;mso-table-rspace:0;">
<tr>
<td valign="top" width="5%" > </td>
<td width="40%">
<table class="list-table_1" border="0" cellpadding="0" cellspacing="0" style="border:none;border-collapse:collapse;mso-table-lspace:0;mso-table-rspace:0;">
<tr>
<td valign="top" align="left" >
<p class="heading_1" style="font-family: Georgia, serif;">Left Column Content 1</p>
</td>
</tr>
<tr>
<td valign="top" align="center" height="10"> </td>
</tr>
<tr>
<td valign="top" align="center" >
<img src="" class="img-responsive" alt="" style="max-width: 100%;" />
</td>
</tr>
<tr>
<td valign="top" align="center" height="5"> </td>
</tr>
<tr>
<td valign="top" align="left" >
<p class="heading_2" style="font-family:Georgia, serif;">Left Column Content 2</p>
</td>
</tr>
</table>
</td>
<td valign="top" width="5%" style="border-right:1px solid #0060af;"> </td>
</tr>
</table>
</td>
<td valign="top" width="50%">
<table class="childTable" border="0" cellpadding="0" cellspacing="0" style="table-layout:fixed;border:none;border-collapse:collapse;mso-table-lspace:0;mso-table-rspace:0;">
<tr>
<td valign="top" width="5%" > </td>
<td width="40%">
<table class="list-table_1" border="0" cellpadding="0" cellspacing="0" style="border:none;border-collapse:collapse;mso-table-lspace:0;mso-table-rspace:0;">
<tr>
<td valign="top" align="left" >
<p class="heading_1" style="font-family: Georgia, serif;">Right Column Content 1</p>
</td>
</tr>
<tr>
<td valign="top" align="center" height="10"> </td>
</tr>
<tr>
<td valign="top" align="center" >
<img src="" class="img-responsive" alt="" style="max-width: 100%;" />
</td>
</tr>
<tr>
<td valign="top" align="center" height="5"> </td>
</tr>
<tr>
<td valign="top" align="left" >
<p class="heading_2" style="font-family:Georgia, serif;">Right Column Content 2</p>
</td>
</tr>
</table>
</td>
<td valign="top" width="5%"> </td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<!-- Second slider ends -->
</table>
</td>
</tr>
</table>
`
感謝
它在IE 9,10,11等中看起來不錯嗎? –
Outlook不是瀏覽器,您不能指望電子郵件客戶端的行爲方式相同。 – Rob
@Rob:我的不好。大多數電子郵件客戶端的行爲方式相同或略有差別,但並不完全不同。 –