HTML电子邮件签名仅在iPhone上呈现不正确

时间:2013-04-04 19:50:01

标签: iphone ios email signature

这实际上是我第一次发帖提问,但我通常“总是”在这里找到答案。你们很棒!...

这是我的问题(相信我,我试图找到答案)。 我使用表格使用标准HTML /内联CSS创建了一个电子邮件签名。它几乎无处不在,并且有许多不同的电子邮件客户端......好吧,除了iPhone / iPad

我附上了我的代码的精确副本以及它应该在iphone上看的图像(它几乎在我测试它的其他地方看起来很好,如hotmail,live,gmail,office 365,roundcube等)。在我看来,iphone将字体/文本呈现为设置大小,并且不尊重我用作font-size的内容。我已经尝试将我的html代码从div调整到表格,从td到span等移动样式,什么都没有。

*注意:它不允许我上传图片,因此我已在此处上传到网络:http://www.ileansolutions.com/ditthavong/uploads/images/test_email_signature.jpg

<table width="400" cellpadding="0" cellspacing="0" cols="2">

<tr>
<td width="400" colspan="2"><img src="http://ileansolutions.com/ditthavong/uploads/images/ditthavong_em_sig.jpg" width="400" height="34" /></td>
</tr>


<tr>
  <td width="400" colspan="2" style="background-color:#999999; color:#ffffff; width:auto; height:10px;"></td>
</tr>


<tr>
<td width="400" colspan="2" style="padding: 10px 0 5px 0;"><span style="font-family:Verdana, Arial, Helvetica, sans-serif; color:#717070; font-size:17px;">Kevin Smith</span></td>
</tr>


<tr>
<td width="180"><span style="font-family:Verdana, Arial, Helvetica, sans-serif; color:#000000; font-size:11px;">Office 703.500.9900</span></td>
<td width="220" style="text-align:right;"><span style="font-family:Verdana, Arial, Helvetica, sans-serif; color:#000000; font-size:11px;">44 Canal Center Plaza, Suite 322</span></td>
</tr>


<tr>
<td width="190"><span style="font-family:Verdana, Arial, Helvetica, sans-serif; color:#000000; font-size:11px;">Direct 703.500.9900</span></td>
<td width="210" style=" text-align:right;"><span style="font-family:Verdana, Arial, Helvetica, sans-serif; color:#000000; font-size:11px;">Alexandria, Virginia 22314 USA</span></td>
</tr>


<tr>
<td width="400" colspan="2" style="background-color:#ffffff; color:#ffffff; width:auto; height:10px;"></td>
</tr>


<tr>
<td width="400" colspan="2" style="background-color:#999999; padding: 5px 0 5px 5px;"><span style="font-family:Verdana, Arial, Helvetica, sans-serif; color:#ffffff; font-size:14px;">email@domain.com</span></td>
</tr>

</table>

<br/>

<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td>
<span style="font-size:11px; font-weight:bold;">******** PRIVILEGED AND CONFIDENTIAL COMMUNICATION *********</span>
<br/>
<span style="font-size:11px;">THIS MESSAGE IS BEING SENT FROM THE LAW OFFICES OF SO AND SO ETC. THIS MESSAGE IS BEING SENT FROM THE LAW OFFICES OF SO AND SO ETC. THIS MESSAGE IS BEING SENT FROM THE LAW OFFICES OF SO AND SO ETC. THIS MESSAGE IS BEING SENT FROM THE LAW OFFICES OF SO AND SO ETC. THIS MESSAGE IS BEING SENT FROM THE LAW OFFICES OF SO AND SO ETC.        </span>
</td>
</tr>
</table>

3 个答案:

答案 0 :(得分:6)

iOS会自动更改文字大小和颜色。但幸运的是,你可以撤消这个!在“设置”中粘贴签名后,摇动您的iPhone以显示“撤消”对话框。选择“撤消更改属性”。繁荣。恢复正常。

答案 1 :(得分:0)

不确定这些是否有所作为,但它总比没有答案好:

尝试使用<font>代码而不是<span>

尝试使用font-size:17px !important;

答案 2 :(得分:0)

“摇动你的iPhone”到“撤消更改属性”效果很好,包括让签名在Outlook中正确显示。如果您没有“撤消更改属性”,那么Outlook用户将以Times New Roman字体查看整个电子邮件 - 电子邮件内容和签名。

这是因为Outlook默认显示未指定给某种字体的任何HTML文本,如Times New Roman。当您最初将签名粘贴到iOS设置中时,Apple会删除您编码的任何特定字体。但是当你选择“撤消更改属性”时,它会将HTML代码重新放入。

然而,有一点需要注意的是Outlook - 您的电子邮件的内容仍会显示为Times New Roman,即使您的签名在sans字体中正确显示(假设您选择了sans字体) )。这是因为iOS没有在HTML电子邮件中指定字体,这导致Outlook回退到Times New Roman。

可以在每台用户计算机(http://www.msoutlook.info/question/521)上更改Outlook的这种后备字体,但似乎没有办法强制为所有查看者指定正文字体。