我只是創建一些電子郵件通訊,我無法弄清楚強制展望如何正確顯示我的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