【发布时间】:2021-06-25 20:20:59
【问题描述】:
尝试格式化具有五彩纸屑背景图像占据整个<td> 的电子邮件,但它似乎不想与我合作。任何帮助表示赞赏
期望的外观(它在 gmail 和本地的呈现方式) 看我得到(它如何在 Outlook 中呈现)
代码(仅用于五彩纸屑部分:
<tr>
<td style="padding-top:0;padding-right:0;padding-bottom:0;padding-left:0; ">
<table width="100%" style="border-spacing:0;" role="presentation" >
<tr width="100%">
<td class="padding content" width="100%"
style="padding-top:90px;padding-bottom:20px;padding-right:20px;padding-left:20px;width:100%;text-align:center; font-size:20px;background-image: url(https://i.ibb.co/9cTRh0Y/confetti.png) ">
<!--[if gte mso 9]>
<v:image xmlns:v="urn:schemas-microsoft-com:vml" fill="true" stroke="false" style=" border: 0;display: inline-block; width: 480pt; height: 300pt;" src="https://i.ibb.co/9cTRh0Y/confetti.png" /> <v:rect xmlns:v="urn:schemas-microsoft-com:vml" fill="true" stroke="false" style=" border: 0;display: inline-block;position: absolute; width: 480pt; height:300pt;">
<v:fill opacity="0%" color="#fff" />
<v:textbox inset="0,0,0,0">
<![endif]-->
<div>
<p style="font-size:23px; font-weight:bold; padding-bottom: 5px; line-height: 28px;">
Announcing the Self-Service Password Reset <br><strong style="color: #007da5;">Raffle Winner</strong></p>
<p style="font-size:18px;line-height: 23px;">Thank you to everyone who registered for the SSPR feature. <br> Out of everyone in ICT we had 48 people register! <br>Without further ado, the winner of the <strong>$20 gift card to Starbucks</strong> is...</p>
<p style="text-align:center;font-size:23px; font-weight:bold; padding-bottom: 5px; line-height: 28px;">Winner! </p>
<p style="font-size:12px;line-height: 23px;">The winner will be contacted separately to receive their prize</p>
</div>
<!--[if gte mso 9]>
</v:textbox>
</v:rect>
<![endif]-->
</td>
</tr>
</table>
</td>
</tr>
【问题讨论】:
标签: html outlook html-email vml