0

我只在 Outlook 2013 中体验到标题和正文之间的差距。下面是它在 Outlook 中看起来很热门的屏幕截图:

在此处输入图像描述

这是它的样子:

在此处输入图像描述

我的标题 HTML 代码:

<!-- start header -->
<table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" align="center" width="580" style="font-family:Arial,Helvetica,sans-serif"   >
    <tr>
        <td width="241" height="51" valign="top" height="51" style="line-height: 51px;">
            <img src="http://limus.dev.limusdesign.com/fordfoundation/emails/ford-invitation-template/logo.png" style="display:block;">
        </td>
        <td width="179" height="51" valign="top" bgcolor="#00b0ed" style="background:#00b0ed;" style="line-height: 51px;" ></td>
        <td width="1" height="51" valign="top" style="line-height: 51px;" ></td>
        <td width="159" height="51" valign="top" style=" text-align:center; font-size:14px; " style="line-height: 51px;" >
            <table cellspacing="0" cellpadding="0"  width="159" style="font-family:Arial,Helvetica,sans-serif; text-align:center;"  border="0" height="51">
                <tr>    
                    <td width="159" align="left" valign="top" height="12" style="line-height:12px;" ><img src="http://limus.dev.limusdesign.com/fordfoundation/emails/ford-invitation-template/invitation.png" style="display:block;" height="12"></td>
                </tr>
                <tr>
                    <td  width="159" align="left" valign="top"  style="background:#00B0ED;" > <img src="http://limus.dev.limusdesign.com/fordfoundation/emails/ford-invitation-template/blank.png" style="display:block;" height="5"></td>
                </tr>
                <tr>
                    <td  width="159" align="left" valign="top" style="text-align:center; background:#00B0ED; " height="26" > <a href="#" style="color:#fff; text-decoration:none; font-weight:100; font-family:Arial,Helvetica,sans-serif; text-align:center; font-size:14px "><span style="color:#fff; text-decoration:none; font-weight:100; font-family:Arial,Helvetica,sans-serif; text-align:center; font-size:14px ">INVITATION</span></a></td>
                </tr>
                <tr>
                    <td  width="159" align="left" valign="top"  style="background:#00B0ED;" > <img src="http://limus.dev.limusdesign.com/fordfoundation/emails/ford-invitation-template/blank.png" style="display:block;" height="8"></td>
                </tr>
            </table>

        </td>
    </tr>
    <tr>
        <td width="100%" align="left" valign="top" colspan="4" height="1"><img src="http://limus.dev.limusdesign.com/fordfoundation/emails/ford/images/blank.jpg" height='1' width="1" style="display:block;"></td>
    </tr>
</table>
<!-- end header -->
4

2 回答 2

1

这可能会有所帮助:

http://www.campaignmonitor.com/blog/post/3795/outlook-2013-says-no-to-empty-table-cells

基本上,这是 Outlook 的填充问题 - 它与字体大小有关。在基于表格的网站布局和将字体大小设置为 1px 或使用讨厌的旧 1x1px 透明 gif 文件的旧技巧的时代,这是一个相当老的问题 :)

于 2013-11-07T16:23:03.587 回答
0

在您的样式表中使用它

table { border-collapse:collapse;mso-table-lspace:0pt;mso-table-rspace:0pt;}
table td {border-collapse: collapse;}

并为每个表内联声明

table border="0" cellpadding="0" cellspacing="0"

要获得每个单元格之间的 1 像素空白,请使用嵌套表。并像这样声明表格

table border="1" border-color="#ffffff" cellpadding="0" cellspacing="0"
于 2014-01-07T08:24:58.323 回答