Outlook 2010 使用 HTML 电子邮件创建奇数空间

问题描述

在我的 html 文件中,我有两列,每列中有一个表格。在每个表中,具有内联样式的多行。当左栏中的内容足够多以至于它向下推到某个点时,右栏中会在该位置出现白色中断或空格。如果没有内容到达左列中的那个点,则右列看起来很好,没有奇怪的中断/空白。

主要发送方法是 mailchimp 活动,但在使用 Outlook 中的“插入为文本”功能在邮件正文中发送 html 电子邮件时,也会发生同样的事情。这种现象只会在 Outlook 2010 中发生。

包括有问题的空白区域的图像。圈出的白色部分不应该在那里,应该是一个统一的灰色背景,如其上方和下方所见。如您所见,它也将内容分成两半。然而,左列中没有相应的空白。包括完整的代码,发生这种情况的行大约是 54(左列内容)和 112(在右边被分成两半的链接)。我感觉 Outlook 这样做是出于某种其他原因,而不是基于代码中的那些特定行,但我不知道。

odd white space in right column

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
</head>

<body style="margin: 0; padding: 0; background-color:#EBEBEB"><table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#EBEBEB" >
  <tbody>
    <tr>
      <td><br>
<table width="800" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#ffffff">
        <tbody>
          <tr>
            <td colspan="2"><img src="https://mcusercontent.com/1ef099905d4d96754c45a57bf/images/916957d8-b90a-4366-aba5-e59a58a974a9.png" width="800" height="195" style="display: block" alt=""/></td>
          </tr>
          <tr>
            <td width="550" style="font-family:Calibri,Arial; font-size:13px; color: #494949; padding: 16px 20px 8px 21px"><strong>JANUARY 2021</strong></td>
            <td width="250" align="right" style="padding: 16px 20px 8px 21px"><img src="https://mcusercontent.com/1ef099905d4d96754c45a57bf/images/0e3c86e8-d4df-4e03-b6a9-e76d9ac54aac.gif" style="border: none" width="18" height="18" alt=""/> &nbsp;<img src="https://mcusercontent.com/1ef099905d4d96754c45a57bf/images/008a2bf3-c0cd-431b-8375-2b5e150f39b0.gif" style="border: none" width="18" height="18" alt=""/> &nbsp;<img src="https://mcusercontent.com/1ef099905d4d96754c45a57bf/images/9851496c-80b9-4946-af9b-7cfbff69fd6c.gif" style="border: none" width="18" height="18" alt=""/></td>
          </tr>
          <tr>
            <td width="550" valign="top" style="padding: 10px 20px 20px 20px"><table width="510" border="0" cellspacing="0" cellpadding="0">
              <tbody>
                <tr>
                  <td style="font-family:calibri; arial; sans-serif; font-size:22px; color: #ffffff; padding: 5px 20px 6px 20px; background-color: #e31837"><strong>A YEAR LIKE NO OTHER</strong></td>
                </tr>
                <tr>
                  <td style="font-family:calibri; arial; sans-serif; font-size:15px; line-height: 20px; color: #494949; padding: 20px 20px 45px 20px">Lorem ipsum dolor sit amet,consectetur adipiscing elit,sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident,sunt in culpa qui officia deserunt mollit anim id est laborum.<br>
                    <br>
                    Lorem ipsum dolor sit amet,sunt in culpa qui officia deserunt mollit anim id est laborum.</td>
                </tr>
                <tr>
                  <td style="font-family:calibri; arial; sans-serif; font-size:22px; color: #ffffff; padding: 5px 20px 6px 20px; background-color: #e31837"><strong>A YEAR LIKE NO OTHER</strong></td>
                </tr>
                <tr>
                  <td style="font-family:calibri; arial; sans-serif; font-size:15px; line-height: 20px; color: #494949; padding: 20px 20px 45px 20px;">Lorem ipsum dolor sit amet,sunt in culpa qui officia deserunt mollit anim id est laborum.</td>
                </tr>
                <tr>
                  <td style="padding: 0px 20px 0px 20px; border: none"><hr color="#E0E0E0"></td>
                </tr>
                <tr>
                  <td style="font-family:calibri; arial; sans-serif; font-size:15px; line-height: 20px; color: #494949; padding: 20px 20px 45px 20px;">Lorem ipsum dolor sit amet,sunt in culpa qui officia deserunt mollit anim id est laborum.</td>
                </tr>
                
                <tr>
                  <td style="font-family:calibri; arial; sans-serif; font-size:15px; line-height: 20px; color: #494949; padding: 20px 20px 45px 20px;">Lorem ipsum dolor sit amet,sunt in culpa qui officia deserunt mollit anim id est laborum.</td>
                </tr>
                <tr>
                  <td style="font-family:calibri; arial; sans-serif; font-size:15px; line-height: 20px; color: #494949; padding: 20px 20px 45px 20px;">Lorem ipsum dolor sit amet,sunt in culpa qui officia deserunt mollit anim id est laborum.</td>
                </tr>
                <tr>
                  <td>&nbsp;</td>
                </tr>
                <tr>
                  <td>&nbsp;</td>
                </tr>
              </tbody>
            </table></td>
            <td width="250" rowspan="2" valign="top" style="padding: 10px 20px 20px 0px"><table width="230" border="0" cellspacing="0" cellpadding="0">
              <tbody>
                <tr>
                  <td valign="top" style="font-family:calibri; arial; sans-serif; font-size:15px; color: #FFFFFF; padding: 9px 0px 9px 20px; background-color: #5a5a5a"><strong><span style="font-size: 17px">&#187;</span> AT IN THE NEWS</strong></td>
                </tr>
                <tr>
                  <td valign="top" style="font-family:calibri; arial; sans-serif; font-size:15px; color: #494949; padding: 20px 20px 20px 20px; background-color: #f1f1f1"><a href="https://www.google.com" style="text-decoration:none; color: #005daa">Lorem Ipsum Dolor Sit Amet Consectetur Adisping Elsumond Minim Exept Est Id Ang</a>  - Philadelphia Business Journal<br>
              <br>
              <a href="https://www.google.com" style="text-decoration:none; color: #005daa">Lorem Ipsum Dolor Sit Amet Consectetur Adisping Elsumond Minim Exept Est </a> – St. Louis Business Journal</td>
                </tr>
                <tr>
                  <td style="padding: 4px">&nbsp;</td>
                </tr>
                <tr>
                  <td><img src="https://mcusercontent.com/1ef099905d4d96754c45a57bf/images/1ab4eb65-27aa-4856-b49e-63ba1e1c31c1.png" style="display: block" width="230" height="130" alt=""/></td>
                </tr>
                <tr>
                  <td style="font-family:calibri; arial; sans-serif; font-size:15px; color: #494949; padding: 20px; background-color: #f1f1f1"><a href="https://www.google.com" style="text-decoration:none; color: #005daa">Lorem Ipsum Dolor Sit Amet Consectetur Adisping Elsumond Minim Exept Est Id Ang</a>  - Philadelphia Business Journal<br>
              <br>
              <a href="https://www.google.com" style="text-decoration:none; color: #005daa">Lorem Ipsum Dolor Sit Amet Consectetur </a> – Missouri Lawyers Weekly</td>
                </tr>
                <tr>
                  <td style="padding: 4px">&nbsp;</td>
                </tr>
                <tr>
                  <td><img src="https://mcusercontent.com/1ef099905d4d96754c45a57bf/images/1ab4eb65-27aa-4856-b49e-63ba1e1c31c1.png" style="display: block" width="230" height="130" alt=""/></td>
                </tr>
                <tr>
                  <td style="font-family:calibri; arial; sans-serif; font-size:15px; color: #494949; padding: 20px; background-color: #f1f1f1"><a href="https://www.google.com" style="text-decoration:none; color: #005daa">Lorem Ipsum Dolor Sit Amet Consectetur Adisping Elsumond Minim Exept Est Id Ang</a>  - Philadelphia Business Journal<br>
              <br>
              <a href="https://www.google.com" style="text-decoration:none; color: #005daa">Lorem Ipsum Dolor Sit Amet Consectetur </a> – Missouri Lawyers Weekly<br>
              <br>
              <a href="https://www.google.com" style="text-decoration:none; color: #005daa">Lorem Ipsum Dolor Sit Amet Consectetur Lorem Ipsum Dolor Sit Amet Akdo</a> –  St. Louis Business Journal</td>
                </tr>
                <tr>
                  <td style="padding: 4px">&nbsp;</td>
                </tr>
                <tr>
                  <td><img src="https://mcusercontent.com/1ef099905d4d96754c45a57bf/images/1ab4eb65-27aa-4856-b49e-63ba1e1c31c1.png" style="display: block" width="230" height="130" alt=""/></td>
                </tr>
                <tr>
                  <td style="font-family:calibri; arial; sans-serif; font-size:15px; color: #494949; padding: 20px; background-color: #f1f1f1"><a href="https://www.google.com" style="text-decoration:none; color: #005daa">Lorem Ipsum Dolor Sit Amet Consectetur Adisping Elsumond Minim Exept Est Id Ang</a>  - Philadelphia Business Journal<br>
              <br>
              <a href="https://www.google.com" style="text-decoration:none; color: #005daa">Lorem Ipsum Dolor Sit Amet Consectetur </a> – Missouri Lawyers Weekly<br>
              <br>
              <a href="https://www.google.com" style="text-decoration:none; color: #005daa">Lorem Ipsum Dolor Sit Amet Consectetur Lorem Ipsum Dolor Sit Amet Akdo</a> –  St. Louis Business Journal</td>
                </tr>
                <tr>
                  <td style="padding: 4px">&nbsp;</td>
                </tr>
                <tr>
                  <td><img src="https://mcusercontent.com/1ef099905d4d96754c45a57bf/images/1ab4eb65-27aa-4856-b49e-63ba1e1c31c1.png" style="display: block" width="230" height="130" alt=""/></td>
                </tr>
                <tr>
                  <td style="padding: 4px">&nbsp;</td>
                </tr>
                <tr>
                  <td><img src="https://mcusercontent.com/1ef099905d4d96754c45a57bf/images/1ab4eb65-27aa-4856-b49e-63ba1e1c31c1.png" style="display: block" width="230" height="130" alt=""/></td>
                </tr>
                <tr>
                  <td style="font-family:calibri; arial; sans-serif; font-size:15px; color: #494949; padding: 20px; background-color: #f1f1f1">&nbsp;</td>
                </tr>
                <tr>
                  <td style="padding: 4px">&nbsp;</td>
                </tr>
                <tr>
                  <td>&nbsp;</td>
                </tr>
                <tr>
                  <td>&nbsp;</td>
                </tr>
              </tbody>
            </table></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td colspan="2" bgcolor="#525252" style="font-family:calibri; arial; sans-serif; font-size:11px; line-height: 13px; color: #bdbdbd; padding: 10px 10px 15px 15px">&nbsp;</td>
          </tr>
        </tbody>
      </table>
<br>
<br></td>
    </tr>
  </tbody>
</table>

</body>
</html>

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...