问题描述
我使用API调用构造电子邮件,并且需要显示某些块,有时多次显示相同的块。 该电子邮件由表格构成,表格中的表格是为了显示所有内容,但有时会出现双边框,尤其是在Outlook上。
似乎有些双线出现。如何将表格的边框合并到另一个表格中?我无法删除一个,因为该块可能会出现3次,并且需要顶部边框。
这是代码:
<table style="border-collapse:collapse; border-spacing:0; -webkit-text-size-adjust:none;" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td align="center" style="padding: 0px; vertical-align:top; width:440px; border-left:1px solid #000; border-right:1px solid #000;" class="container_2">
<table style="border-collapse:collapse; border-spacing:0; -webkit-text-size-adjust:none; border-bottom: 1px solid #000;" border="0" cellpadding="0" cellspacing="0" align="center" width="100%">
<tr>
<td style="width: 150px; background-color: #f4f4f6; border-right:1px solid #000; vertical-align: middle;" align="center">
<a href="#" target="_blank">
<img src="{{SmallImageURI}}" width="150">
</a>
</td>
<td>
<table style="border-collapse:collapse; border-spacing:0; -webkit-text-size-adjust:none;" border="0" cellpadding="0" cellspacing="0" align="center" width="100%">
<tr>
<td style="font-family: Arial,Helvetica,sans-serif; width:290px; vertical-align: top; " align="left" class="container_3">
<p style="font-family: Arial,sans-serif; font-size: 12px; text-align: left; line-height: 16px; color:#000000; margin-left: 10px;
margin-right: 5px; margin-top: 10px; margin-bottom: 10px; "><b>{{VAR}}</b>
</p>
</td>
</tr>
<tr>
<td>
<table style="border-collapse:collapse; border-spacing:0; -webkit-text-size-adjust:none;" border="0" cellpadding="0" cellspacing="0" align="center" width="100%">
<tr>
<td align="left" valign="top" width="165" class="w170 block">
<table valign="top" style="border-collapse:collapse; border-spacing:0; -webkit-text-size-adjust:none;" border="0" cellpadding="0" cellspacing="0" align="center" width="100%">
<tr>
<td valign="top" style="font-family: Arial,sans-serif; width:165px; vertical-align: top;" align="left" class="container_3">
<p style="font-family: Arial,sans-serif; font-size: 12px; text-align: left; line-height: 16px; color:#000000; margin-left:
10px; margin-right: 5px; margin-top: 10px; margin-bottom: 5px; ">%%=v(@VAR)=%%{{VAR}}</p>
</td>
</tr>
<tr>
<td style="font-family: Arial,sans-serif; vertical-align: top;" align="left" class="container_3">
<p style="font-family: Arial,sans-serif; font-size: 12px; text-align: left; line-height: 16px; color:#000000; margin-left: 10px;
margin-right: 5px; margin-top: 0px; margin-bottom: 5px; ">%%=v(@VAR)=%%{{VAR}}</p>
</td>
</tr>
<tr>
<td style="font-family: Arial,sans-serif; font-size: 12px; text-align: left; line-height: 16px; color:#000000; margin-left:
10px; margin-right: 5px; margin-top: 0px; margin-bottom: 10px; ">%%=v(@VAR)=%%{{VAR}}</p>
</td>
</tr>
</table>
</td>
<td valign="top" style="font-family: Arial,sans-serif; width:125px; vertical-align: top;" align="right" class="block container_3 w170 textalign">
<p class="textalign" style="font-family: Arial,sans-serif; font-size: 12px; text-align: right;
line-height: 16px; color:#000000; margin-left: 10px; margin-right: 5px; margin-top: 10px; margin-bottom: 5px; ">
<br/>
</p>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table style="border-collapse:collapse; border-spacing:0; -webkit-text-size-adjust:none;" border="0" cellpadding="0" cellspacing="0" align="center" width="100%">
<tr>
%%=v(uppercase(@VAR))=%%
</tr>
<tr>
%%=v(@VAR)=%%
</tr>
<tr>
%%=v(@VAR)=%%
</tr>
<tr>
%%=v(@VAR)=%%
</tr>
<tr>
%%=v((@VAR))=%%
</tr>
</table>
</td>
</tr>
</table>
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)