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

如何解决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 举报,一经查实,本站将立刻删除。

相关推荐


使用本地python环境可以成功执行 import pandas as pd import matplotlib.pyplot as plt # 设置字体 plt.rcParams[&#39;font.sans-serif&#39;] = [&#39;SimHei&#39;] # 能正确显示负号 p
错误1:Request method ‘DELETE‘ not supported 错误还原:controller层有一个接口,访问该接口时报错:Request method ‘DELETE‘ not supported 错误原因:没有接收到前端传入的参数,修改为如下 参考 错误2:cannot r
错误1:启动docker镜像时报错:Error response from daemon: driver failed programming external connectivity on endpoint quirky_allen 解决方法:重启docker -&gt; systemctl r
错误1:private field ‘xxx‘ is never assigned 按Altʾnter快捷键,选择第2项 参考:https://blog.csdn.net/shi_hong_fei_hei/article/details/88814070 错误2:启动时报错,不能找到主启动类 #
报错如下,通过源不能下载,最后警告pip需升级版本 Requirement already satisfied: pip in c:\users\ychen\appdata\local\programs\python\python310\lib\site-packages (22.0.4) Coll
错误1:maven打包报错 错误还原:使用maven打包项目时报错如下 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources (default-resources)
错误1:服务调用时报错 服务消费者模块assess通过openFeign调用服务提供者模块hires 如下为服务提供者模块hires的控制层接口 @RestController @RequestMapping(&quot;/hires&quot;) public class FeignControl
错误1:运行项目后报如下错误 解决方案 报错2:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project sb 解决方案:在pom.
参考 错误原因 过滤器或拦截器在生效时,redisTemplate还没有注入 解决方案:在注入容器时就生效 @Component //项目运行时就注入Spring容器 public class RedisBean { @Resource private RedisTemplate&lt;String
使用vite构建项目报错 C:\Users\ychen\work&gt;npm init @vitejs/app @vitejs/create-app is deprecated, use npm init vite instead C:\Users\ychen\AppData\Local\npm-
参考1 参考2 解决方案 # 点击安装源 协议选择 http:// 路径填写 mirrors.aliyun.com/centos/8.3.2011/BaseOS/x86_64/os URL类型 软件库URL 其他路径 # 版本 7 mirrors.aliyun.com/centos/7/os/x86
报错1 [root@slave1 data_mocker]# kafka-console-consumer.sh --bootstrap-server slave1:9092 --topic topic_db [2023-12-19 18:31:12,770] WARN [Consumer clie
错误1 # 重写数据 hive (edu)&gt; insert overwrite table dwd_trade_cart_add_inc &gt; select data.id, &gt; data.user_id, &gt; data.course_id, &gt; date_format(
错误1 hive (edu)&gt; insert into huanhuan values(1,&#39;haoge&#39;); Query ID = root_20240110071417_fe1517ad-3607-41f4-bdcf-d00b98ac443e Total jobs = 1
报错1:执行到如下就不执行了,没有显示Successfully registered new MBean. [root@slave1 bin]# /usr/local/software/flume-1.9.0/bin/flume-ng agent -n a1 -c /usr/local/softwa
虚拟及没有启动任何服务器查看jps会显示jps,如果没有显示任何东西 [root@slave2 ~]# jps 9647 Jps 解决方案 # 进入/tmp查看 [root@slave1 dfs]# cd /tmp [root@slave1 tmp]# ll 总用量 48 drwxr-xr-x. 2
报错1 hive&gt; show databases; OK Failed with exception java.io.IOException:java.lang.RuntimeException: Error in configuring object Time taken: 0.474 se
报错1 [root@localhost ~]# vim -bash: vim: 未找到命令 安装vim yum -y install vim* # 查看是否安装成功 [root@hadoop01 hadoop]# rpm -qa |grep vim vim-X11-7.4.629-8.el7_9.x
修改hadoop配置 vi /usr/local/software/hadoop-2.9.2/etc/hadoop/yarn-site.xml # 添加如下 &lt;configuration&gt; &lt;property&gt; &lt;name&gt;yarn.nodemanager.res