我正在嘗試為外部消息做一個(gè)免責(zé)聲明。不過,我在Outlook呈現(xiàn)HTML時(shí)遇到了問題。通過w3schools測(cè)試,它看起來很好,如下所示:
但是,在Outlook中,它看起來像這樣:
下面是我正在使用的代碼:
<div style="background-color:#6385ce; border:3.5px solid #1e3679; padding:.5em; ">
<span style="font-size:12pt; font-family: 'Cambria','times new roman','garamond',serif; color:#FFFFFF;"><b>CAUTION:</b></span>
<span style="font-size:10pt; font-family: 'Cambria','times roman',serif; color:#FFFFFF">This email originated from outside. Do not click on links, open attachments, or reply unless you recognize the sender as well as the domain. Follow guidelines for validating payment information with Wires, ACH, etc.
</span>
</div>
# # #在outlook中Table標(biāo)簽比div更安全。 有一些outlook規(guī)則使用整數(shù),一個(gè)字體家族...等等。
<table style="background:#6385ce; border:4px solid #1e3679; color:#fff; font-family: Cambria; font-size:10pt;">
<tbody>
<tr>
<td style="padding:8px;">
<strong style="font-size:12pt;">CAUTION:</strong> This email originated from outside. Do not click on links, open attachments, or reply unless you recognize the sender as well as the domain. Follow guidelines for validating payment information with Wires, ACH, etc.
</td>
</tr>
</tbody>
</table>