HTML邮件模板在HTML标记中有额外的空白空间

3

我正在制作由拖放功能生成的电子邮件模板。

我对此很陌生,所以我遵循了这个教程链接

但是,当我发送邮件时,有时会在一个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 -->

有时候,我发现我的内联样式丢失了。
如何避免这种情况?
1个回答

0

您已经给出了文件名为<img src="abc.com/open_li+nk.php" class="CToWUd">

难道不能是<img src="abc.com/open_link.php" class="CToWUd">吗?

以删除额外的空格为例,

  <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>

你可以参考这个链接

希望能对你有所帮助。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接