这实际上是我第一次发布问题,但我通常“总是”在这里找到答案。你们真棒!...
这是我的问题(相信我,我试图找到答案)。我使用标准 HTML/内联 CSS 使用表格创建了一个电子邮件签名。它几乎在任何地方看起来都很棒,并且有许多不同的电子邮件客户端......好吧,除了 iPhone/iPad
我附上了我的代码的精确副本以及它应该在 iphone 上看到的图像(它看起来几乎在我测试过的所有其他地方都很好,比如 hotmail、live、gmail、office 365、roundcube 等)。在我看来,iphone 将字体/文本呈现为设定的大小,并且不尊重我用作字体大小的内容。我尝试将我的 html 代码从 div 调整到 table,从将样式从 td 移动到 spans 等,但什么都没有。
*注意:它不会让我上传图片,所以我在这里上传到网络: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>