【问题标题】:HTML Email Template has additional empty space in html tagHTML 电子邮件模板在 html 标记中有额外的空白空间
【发布时间】:2017-04-03 01:21:09
【问题描述】:

我正在制作通过拖放功能生成的电子邮件模板。 我是新手,我按照本教程进行操作link

但是,当我发送电子邮件时,有时我在其中一个 html 标记中获得了额外的空间。而且我还在 url 链接或图像 src 之一处获得了额外的“+”号。

我的 HTML:

<div style="inline-styles-here">
   <img src="abc.com/open_link.php" class="CToWUd">
</div>

结果:

 <div><!-- inline styles is missing -->
     <img src="abc.com/open_li+nk.php" class="CToWUd"><!-- There is + at the src link -->
 < /div> <!-- There is space in the closing tag -->

有时,我还发现我的一个内联样式丢失了。

我怎样才能避免这种情况?

【问题讨论】:

    标签: html css email


    【解决方案1】:

    你给的文件名是&lt;img src="abc.com/open_li+nk.php" class="CToWUd"&gt;

    不能是&lt;img src="abc.com/open_link.php" class="CToWUd"&gt;吗?

    删除额外的空间,

      <table width="600px" cellspacing="0" cellpadding="0" border="0" align="center" class="bg-color1" style="border-collapse: collapse;mso-table-lspace: 0pt;mso-table-rspace: 0pt;">
    <tbody>
      <tr><td>Your email content</td></tr>
    </tbody>
    </table>
    

    您可以参考this link

    希望这会有所帮助。

    【讨论】:

      猜你喜欢
      • 2012-07-26
      • 1970-01-01
      • 2015-06-22
      • 2015-02-09
      • 2013-12-02
      • 2023-04-06
      • 1970-01-01
      • 1970-01-01
      • 2014-07-16
      相关资源
      最近更新 更多