我只是创建一些电子邮件通讯,我无法弄清楚强制展望如何正确显示我的HTML表格。展望2010年和HTML表格
有简单的例子:
<table cellpadding="0" cellspacing="0" id="outlookHack"
style="table-layout:fixed; border: 0; background-color: #1E6C9D;
background-image: url(http://www.komix.cz/upload/img_bg.png);
background-repeat: repeat-y; margin-top: 0px; margin-bottom: 0px;
padding: 0px; margin-left: auto; margin-right: auto;
text-align: center;width: 620px;" width="620">
<tr>
<td width="10" style="width: 10px; background:inherit;" height="10"> </td>
<td width="600" style="width: 600px; background:ihnerit;" height="10"></td>
<td width="10" style="width: 10px; background:inherit;" height="10"> </td>
<tr>
<tr>
<td width="10" style="width: 10px; background: inherit;"> </td>
<td width="600" style="width: 600px; background: white;">some content...</td>
<td width="10" style="width: 10px; background: inherit;"> </td>
<tr>
</table>
的问题是,左,右列应该有固定的10px的大小,但前景07/10使他们为+/- 5像素。
除Outlook 07外,填充实际上在每个主要的电子邮件客户端(包括Web和桌面)中都可以100%地工作。而Outlook 07仍然支持它,它只是可以有一些古怪的行为 - 描述在这里:http://www.activecampaign.com/blog/email-design-watch-your-table-cell-padding/ 对于OP目的(在水平边上填充的直列布局),填充方法将完美工作。 – Todd 2011-04-04 16:54:09