在 iPhone 上设置的电子邮件签名在其他客户端中以更大的字体显示
Email signature set up on iPhone renders with larger font size in other clients
我使用 MacOs Sierra Mail 创建了以下电子邮件签名。
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 签名,所以我遵循了 this guide。
它建议 (1) 复制 iOS 邮件中收到的签名,(2) 将其粘贴到“设置”>“邮件”>“签名”中,以及 (3) 在粘贴后调用并撤消,以避免 iOS包括破坏格式的附加代码。
在 iPhone 预览和通过手机发送的电子邮件中,一切看起来都应该如此 phone 但在发送了一些测试电子邮件后,我发现两者都 OSX Mail 和 Gmail 使用 17px 的字体大小而不是内联 CSS 中指定的 12px 呈现签名。
最初我在 body 标签中指定了字体大小,但现在我将其包含在每一行中,希望它可以解决问题,但事实并非如此。
任何关于为什么会发生这种情况的线索都将不胜感激。
iOS 可能会自动缩放文本。 Apple 有时 adds/remove/changes 邮件中的缩放机制,它可以将样式化的电子邮件代码抛出一个循环。将此添加到 <head>
应该会完全禁用自动缩放。
<meta name="x-apple-disable-message-reformatting">
不确定是什么让 Gmail 出错了,但您是否尝试过在 <head>
中添加视口?
<meta name="viewport" content="width=device-width">
我使用 MacOs Sierra Mail 创建了以下电子邮件签名。
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 签名,所以我遵循了 this guide。 它建议 (1) 复制 iOS 邮件中收到的签名,(2) 将其粘贴到“设置”>“邮件”>“签名”中,以及 (3) 在粘贴后调用并撤消,以避免 iOS包括破坏格式的附加代码。
在 iPhone 预览和通过手机发送的电子邮件中,一切看起来都应该如此 phone 但在发送了一些测试电子邮件后,我发现两者都 OSX Mail 和 Gmail 使用 17px 的字体大小而不是内联 CSS 中指定的 12px 呈现签名。
最初我在 body 标签中指定了字体大小,但现在我将其包含在每一行中,希望它可以解决问题,但事实并非如此。
任何关于为什么会发生这种情况的线索都将不胜感激。
iOS 可能会自动缩放文本。 Apple 有时 adds/remove/changes 邮件中的缩放机制,它可以将样式化的电子邮件代码抛出一个循环。将此添加到 <head>
应该会完全禁用自动缩放。
<meta name="x-apple-disable-message-reformatting">
不确定是什么让 Gmail 出错了,但您是否尝试过在 <head>
中添加视口?
<meta name="viewport" content="width=device-width">