小编coo*_*pix的帖子

Outlook 2010和HTML表格

我只是在创建一些电子邮件通讯,而无法确定Outlook如何强制显示我的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">&nbsp;</td>
  <td  width="600" style="width: 600px; background:ihnerit;" height="10"></td>
  <td width="10" style="width: 10px; background:inherit;" height="10">&nbsp;</td>
<tr>
<tr>
  <td width="10" style="width: 10px; background: inherit;">&nbsp;</td>
  <td  width="600" style="width: 600px; background: white;">some content...</td>
  <td width="10" style="width: 10px; background: inherit;">&nbsp;</td>
<tr>
</table>
Run Code Online (Sandbox Code Playgroud)

问题是,左列和右列的固定大小应为10px,但是Outlook 07/10会将其呈现为+/- 5px。

html email outlook

5
推荐指数
1
解决办法
3万
查看次数

标签 统计

email ×1

html ×1

outlook ×1