任何人都可以帮我找到在电子邮件模板中创建以下功能的另一种方法。 Inline position styling is being removed from the template。
table {
width: 80%;
border-spacing: 0;
}
table tr td.label-dots {
position: relative;
overflow: hidden;
background-color: red;
}
table tr td.label-dots span {
position: absolute;
overflow: hidden;
white-space: nowrap;
}
table tr td:not(.label-dots) {
background-color: blue;
}
<table>
<tr>
<td class="label-dots">Label<span>...................................................................................................................</span></td>
<td>$9.99</td>
</tr>
</table>
答案 0 :(得分:1)
这适用于每个电子邮件客户端:
border: 1px dotted #000000;
示例:
<table role="presentation" cellspacing="0" cellpadding="0" border="0" width="400" style="margin: 0 auto;">
<tr>
<td width="50">Item</td>
<td width="300" style="border-bottom: 1px dotted #000000;"> </td>
<td width="50">Price</td>
</tr>
</table>
<table>