Html电子邮件在hotmail上没有显示保证金,但在Outlook上显示

时间:2014-01-09 14:33:47

标签: html email html-email

我在Dreamweaver上发了一封html电子邮件,并在某些文字中使用了保证金。

例如:

  <td width="453" height="115" bgcolor="#18b581"><p style="font-family: Arial, Helvetica,    sans-serif; margin-left: 25px;"><strong><font size="4">Hello world?</font>

这在Dreamweaver中显示完美。当我通过outlook发送它时,我将其保存为outlook模板。我把它发送到我的Outlook帐户和我的Hotmail。利润率对我的前景起作用,但利润率对Hotmail不确定,我不知道为什么!!

更新:

         <td  colspan="2" bgcolor="#FFFFFF"><h3  style="font-family: Arial, Helvetica, sans-serif; color:#1d95a5; padding-left: 25px; padding-top:30px; ">What are the benefits of the NP-C directory?</h3>
   <p  style="font-family: Arial, Helvetica, sans-serif; color:#555555; font-size:15px; padding-left: 25px; padding-right: 22px;   padding-top:-20px;">The NP-C directory offers you the opportunity to: </p>
   <ul style="font-family: Arial, Helvetica, sans-serif; color:#555555; font-size:15px; padding-left: 80px; padding-right: 51px; padding-top:-12px;">
  <li><strong>Connect</strong> with healthcare professional colleagues in your local                   country/area who have a shared interest in NP-C</li>
  <li><strong>Network</strong> with healthcare professionals around the world to share                 experiences of NP-C</li>
  <li><strong>Exchange</strong> the latest news and information about NP-C</li>
  </ul>

2 个答案:

答案 0 :(得分:2)

Outlook.com中的保证金为not supported。而是在父<td>元素中使用填充。

不要这样做:

<td>
  <p style="margin-left:25px;">Paragraph</p>
</td>

而是这样做:

<td style="padding-left:25px;">
  <p>Paragraph</p>
</td>

答案 1 :(得分:0)

是的,欢迎来到HTML电子邮件的危害!

查看email standards project,它们会保留各种浏览器之间所有差异的目录。

最好的建议是尽量避免依赖于填充和边距,而是使用固定宽度的表格单元来定位元素。

相关问题