我正在測試一個html電子郵件是... Outlook,它在我的表格右側添加了一個奇怪的不需要的邊距。Outlook正在添加一個右邊距我不想要
這兩個表格應該並排排列,每個400px父表格(在手機上摺疊爲200px)每個200px。
Outlook的行爲的第一條線索是表格不再是並排的。當選定文本添加的利潤率清楚地顯示出:
在所有的任何想法?這是我的代碼 - 正如你所看到的,我已經嘗試了幾乎所有我能想到的東西!
<table width="400" border="0" cellspacing="0" cellpadding="0" style="border-collapse:collapse; margin-right: none; witdh: 200px">
<tr style="border-collapse:collapse; margin-right: none; witdh: 400px">
<td style="border-collapse:collapse; margin-right: none; witdh: 400px">
<table width="200" border="0" cellspacing="0" cellpadding="0" align="left" style="border-collapse:collapse; margin-right: none; witdh: 200px;">
<tr style="border-collapse:collapse; margin-right: none; witdh: 200px">
<td style="border-collapse:collapse; margin-right: none; witdh: 200px">Box;</td>
</tr>
</table><table width="200" border="0" cellspacing="0" cellpadding="0" align="left" style="border-collapse:collapse; margin-right: none; witdh: 200px;">
<tr style="border-collapse:collapse; margin-right: none; witdh: 200px">
<td style="border-collapse:collapse; margin-right: none; witdh: 200px">Box;</td>
</tr>
</table>
</td>
</tr>
</table>
該代碼仍然存在邊距(或其他)。 我正在尋找的是兩個並排的單元格表格。他們需要成爲表格而不是單元格,以便在響應式手機模板中可以滑入單個列。 –
我聽到你的聲音,但你必須記住Outlook的HTML解析器是IE 5.5的混蛋。如果你想讓移動設備變得更加靈活,你將不得不做更復雜的事情。 查看http://htmlemailboilerplate.com/瞭解更多信息(以及任何HTML電子郵件佈局的絕佳起點!)。 –