我已经创建了以下电子邮件签名使用MacOs塞拉利昂邮件。
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
charset=us-ascii
Message-Id: <25BE5C1D-06F0-4554-9226-A293B8E402CB>
Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\))
<body style="padding:0;font-size:12px;font-family: Helvetica, Arial, sans-serif;font-weight:bold;word-wrap: break-word; -webkit-line-break: after-white-space;">
<br />
<br />
<br />
<p style="margin:0;padding:0;color:#6C5AB6;font-size:12px;font-weight:bold;font-family: Helvetica, Arial, sans-serif;">My Name</p>
<p style="margin:0;padding:0;color:#6C5AB6;font-size:12px;font-weight:bold;font-family: Helvetica, Arial, sans-serif;">Job Title</p>
<a href="tel:+555555555" style="display:block;margin:0;padding:0;text-decoration:none !important;border:none !important;color:#000000;font-size:12px;font-weight:bold;font-family: Helvetica, Arial, sans-serif;">+555555555 </a>
<br />
<p style="margin:0;padding:0;color:#000000;font-weight:bold;font-size:12px;font-family: Helvetica, Arial, sans-serif;text-decoration:none !important;">Address Line 1</p>
<p style="margin:0;padding:0;color:#000000;font-weight:bold;font-size:12px;font-family: Helvetica, Arial, sans-serif;text-decoration:none !important;">Address Line 2</p>
<a href="#" style="margin:0;padding:0;color:#000000;border:none !important;text-decoration:none !important;font-weight:bold;font-size:12px;font-family: Helvetica, Arial, sans-serif;">mywebsite.com</a>
<br />
<br />
<br />
<br />
<a href="#" style="border:none !important";><img src="signature_photo.png" style="height:90px;width:383px"></></a>
<p style="margin:40px 0;padding:0;font-family: Helvetica, Arial, sans-serif;color:#919191;font-weight:300;font-size:10px;width:100%;">PRIVILEGED - PRIVATE AND CONFIDENTIAL. This communication and any files transmitted with it, are intended solely for the named addressee(s) only and may contain information which is confidential, legally privileged and are subject to copyright. No part of this email can be reproduced without consent of the Copyright owner. If you receive this email and you are not the addressee, intended recipient (or responsible for the delivery of the email to the addressee), please do not read, use, distribute or copy this email. Please delete the email and notify the author immediately.</p>
</body>html呈现在此客户端和Gmail中都是预期的。但是,由于我希望在我的iOS邮件中设置相同的html签名,所以我遵循了本指南。它建议:(1)复制iOS邮件中收到的签名;(2)在设置>邮件>签名中粘贴签名;(3)在粘贴之后调用和撤消签名,以避免iOS包括干扰格式的附加代码。
在iPhone预览版和通过手机发送的电子邮件中,这一切看起来都一样,但在发送了一些测试邮件之后,我意识到OSX和Gmail都呈现出字体大小为17 of的签名,而不是内联CSS中指定的12 of。
最初,我在body标记中有字体大小规范,但是我已经将它包含在每一行中,希望它能够解决这个问题,但它没有。
任何关于这种情况发生的原因的线索都是非常感谢的。
发布于 2017-08-01 19:23:29
iOS可以自动缩放文本.Apple有时会在邮件中添加/删除/更改缩放机制,这可以为循环抛出样式化的电子邮件代码。将此添加到<head>应该会完全禁用自动缩放功能。
<meta name="x-apple-disable-message-reformatting">不知道是什么让Gmail被绊倒了,但是您是否尝试过在<head>中添加一个viewport呢?
<meta name="viewport" content="width=device-width">https://stackoverflow.com/questions/45438010
复制相似问题