【发布时间】:2020-03-12 11:38:43
【问题描述】:
我使用 sendGrid 为 @hotmail.com 帐户 创建了一个邮件模板,但是当我测试电子邮件时,我没有与设计相同的模板。这就是我所做的:
我的 HTML 代码:
<td colspan="5" style="border-left: 20px solid pink;border-right: 20px pink solid ;padding : 0 30px; font-size:13px; padding-bottom : 20px">
<div style="margin-top:20px; display : flex; font-size : 12px">
<div style="background: pink; flex: 1; margin-right: 5px; width : 130px; height : 50px; text-align : center">
<p style="margin : 0; margin-top : 10px">TEST</p>
<p style="margin : 0">TEST</p>
</div>
<div style="width : 130px; height : 50px; text-align : center; background: pink; flex: 1; margin-right: 5px;">
<p style="margin : 0; margin-top : 10px">TEST</p>
<p style="margin : 0">TEST</p>
</div>
<div style="width : 240px; height : 50px; text-align : center; background: pink; flex: 2;line-height:50px;">
TEST TEST TEST TEST TEST TEST TEST
</div>
</div>
</td>
【问题讨论】:
-
将父组件从TD切换到DIV并添加
flex-direction: row和flex-wrap: wrap怎么样? -
sendgrid 对 flex-direction 等与 flex 相关的属性支持不佳
标签: html outlook html-email sendgrid