我遇到了使用Gmail应用(Android 6.0)HTML电子邮件呈现图像之间垂直间隙的问题。我在Litmus的其他客户端/屏幕组合中没有任何问题 - 桌面,移动,Outlook,IOS,AOL等
如果我删除图像之间的td标记并使用float left,则Android会将图像堆叠在一起。
如果我更换
<!--[if !gte mso 15]><!--></td><td valign="bottom"><!--<![endif]-->
带
</td><td>
就像我原来一样,Gmail App和Outlook都有垂直线间隙。
有人可以提出改进代码的方法吗?
由于
<table width="640" border="0" cellspacing="0" cellpadding="0" style="text-decoration:none;border-collapse:collapse;mso-table-lspace:0pt;mso-table-rspace:0pt;table-layout:fixed;border-spacing:0;table-layout:auto;border-collapse: collapse;mso-table-lspace: 0pt;mso-table-rspace: 0pt;text-decoration: none;table-layout: auto;border-spacing: 0; ">
<tbody>
<tr>
<td>
<a target="_blank" href="http://www.....com/why-use-a-centrifugal-separator.html" style="color:#000000;cursor:pointer;text-decoration:none !important;color: #000000;cursor: pointer;text-decoration: none !important;"><img width="231" height="202" border="0" alt="Read more about keeping oil cleaner longer" src="http://www.....com/emailer/201709/images/keepoilcleanerlonger_100_231x202.jpg" style="-ms-interpolation-mode:bicubic;text-align:center;line-height:20px;width: 231px; height: 202px; display: block; margin: 0px; outline: none;text-decoration: none;-ms-interpolation-mode: bicubic;border: none;display: block;"></a>
<!--[if !gte mso 15]><!--></td><td valign="bottom"><!--<![endif]-->
<a target="_blank" href="http://www.....com/why-use-a-centrifugal-separator.html" style="color:#000000;cursor:pointer;text-decoration:none !important;color: #000000;cursor: pointer;text-decoration: none !important;"><img width="178" height="202" border="0" alt="Read more about reducing man service hours" src="http://www.....com/emailer/201709/images/reduceservicemanhours_100_178x202.jpg" style="-ms-interpolation-mode:bicubic;text-align:center;line-height:20px;width: 178px; height: 202px; display: block; margin: 0px; outline: none;text-decoration: none;-ms-interpolation-mode: bicubic;border: none;display: block;"></a>
<!--[if !gte mso 15]><!--></td><td valign="bottom"><!--<![endif]-->
<a target="_blank" href="http://www.....com/assets/web-and-email-a4-mp200-data-sheet-v08.pdf" style="color:#000000;cursor:pointer;text-decoration:none !important;color: #000000;cursor: pointer;text-decoration: none !important;"><img width="231" height="202" border="0" alt="Read more about adding to existing power units" src="http://www.....com/emailer/201709/images/addtoexistingpowerunits_100_231x202.jpg" style="-ms-interpolation-mode:bicubic;text-align:center;line-height:20px;width: 231px; height: 202px; display: block; margin: 0px; outline: none;text-decoration: none;-ms-interpolation-mode: bicubic;border: none;display: block;"></a>
</td>
</tr>
</tbody>
答案 0 :(得分:0)
我发现了你的问题。您正在使用无效的href和img代码。
这永远不会作为网址或图片使用:
http://www.....com
我可以将这些与占位符图片交换出来,也许可以更好地了解您的实际问题,但如果您只发布一部分代码,我只能发布一部分解决方案你的问题。
我发现你也没有对Litmus做出回应。