我有一个非常简单的 html 电子邮件结构:
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="center">
<table border="0" cellpadding="0" cellspacing="0" width="600">
<tr>
<td align="left">
This is where my content goes.
</td>
</tr>
</table>
</td>
</tr>
</table>
我多年来一直使用这种结构,它总是在各种电子邮件客户端中工作,因为它非常基础。
但在 Outlook Web App 中,它不会将内部表格居中。
它使用 align="center" 将 style="text-align:center" 添加到 td。但 style="text-align:center" 只居中文本,没有表格。所以内表在 OWA 中左对齐。