小编Sou*_*iel的帖子

Outlook(2007和2010)中HTML电子邮件表格中TD元素下方的空间不一致

我研究了这个问题,在网上找到了许多建议的修复,但没有任何工作.

问题是我正在设计的HTML电子邮件中表格中特定TD元素之间的差距.它仅在Outlook 2007和2010中以这种方式显示.

这是一个屏幕抓取问题链接

在右侧边栏中,"Level 2"与其上方的薄圆角框之间应该没有间隙.

以下是创建蓝色框的嵌套表的代码:

<table class="box" width="200" border="0" cellspacing="0" cellpadding="0"><tr><td style='line-height:0;font-size:0'><img src="http://dl.dropbox.com/u/16792732/wave-email-images/box_dark_top.gif" style="display:block" width="200" height="10" /></td></tr><tr><td class="box_dark"><h2>Level 2<br /><span class="white">Care Assistants</span></h2><h2>Level 3<br /><span class="white">Senior Carers</span></h2><h2 class="norule">Level 5<br /><span class="white">Managers and Deputy Managers</span></h2></td></tr><tr><td style='line-height:0'><img src="http://dl.dropbox.com/u/16792732/wave-email-images/box_dark_bottom.gif" style="display:block" width="200" height="10" /></td></tr></table>
Run Code Online (Sandbox Code Playgroud)

正如您所看到的,我删除了所有空白区域,因为我在其中一个解决方案中提到了这一点.我还在TD元素中插入了'line-height:0; font-size:0'样式,在图像本身中插入了'display:block'样式,同样是所有建议的解决方法.这些都没有产生任何影响.

此问题不会出现在任何其他电子邮件客户端或浏览器中.

请帮忙!

html email outlook outlook-2007 outlook-2010

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

标签 统计

email ×1

html ×1

outlook ×1

outlook-2007 ×1

outlook-2010 ×1