【问题标题】:Line spacing and font type html E-mail signature行距和字体类型 html 电子邮件签名
【发布时间】:2021-09-21 19:44:59
【问题描述】:

<table style="border-collapse: collapse; width: 100%; height: 252px;">
<tbody>
<tr style="background-color: #f8f8f8;font-size:14px;">
<td style="width: 3%; height: 125px;">&nbsp;</td>
<td style="width: 94%; height: 125px; text-align: center;">
<p style="text-align: center;"><strong>Terry Mueller</strong></p>
<p style="text-align: center;">Private Private</p>
<p style="text-align: center;">Aus 20, 89054 Dettingen, Germany</p>
E-Mail: <a href="mailto:terry.mueller@capcap.com">terry.mueller@capcap.com</a></td>
<td style="width: 3%; height: 125px;">&nbsp;</td>
</tr>
<tr style="height: 2px;">
<td style="width: 3%; height: 2px;">&nbsp;</td>
<td style="width: 94%; height: 2px;">&nbsp;</td>
<td style="width: 3%; height: 2px;">&nbsp;</td>
</tr>
<tr style="background-color: #f8f8f8;font-size:12px;">
<td style="width: 3%; height: 125px;">&nbsp;</td>
<td style="width: 94%; height: 125px; text-align: justify;"><strong>Important Note:</strong> This e-mail and any attachment are confidential and may contain trade secrets and may well also be legally privileged or otherwise protected from disclosure. If you have received it in error, you are on notice of its status. Please notify us immediately by reply e-mail and then delete this e-mail and any attachment from your system. If you are not the intended recipient, please understand that you must not copy this e-mail or any attachment or disclose the contents to any other person. Thank you for your cooperation.</td>
<td style="width: 3%; height: 125px;">&nbsp;</td>
</tr>
</tbody>
</table>

这是我第一次编写html。我希望最终结果看起来像这样:

所以我基本上必须将行距设置为零,并且我希望字体类型为 Calibri (Body)。此外,电子邮件链接不应加下划线,我希望字体颜色为黑色而不是蓝色。无法弄清楚如何在html中做到这一点。任何帮助表示赞赏。结果应该尽可能地兼容。我知道这是一个菜鸟问题:)

提前感谢任何帮助!

【问题讨论】:

    标签: html html-email


    【解决方案1】:

    您首先必须从 Google 字体导入字体。谷歌字体会给你一行粘贴到你的 HTML 的头部。然后您可以使用内联样式,但将其添加到每个元素中。 style="font-family: Calibri; line-height: 5px;".可能有更简单的方法...

    【讨论】:

    • 感谢为我工作。
    • @BroNKo 网络字体不会在所有电子邮件客户端中呈现相同的内容。只有 3 台设备可以呈现 Web 字体。 Check this litmus article。您将需要所有电子邮件客户端的备用字体,并强制 Outlook 呈现网络安全字体,否则它将呈现系统默认字体,即 Times New Roman。
    猜你喜欢
    • 2021-08-21
    • 1970-01-01
    • 2020-03-15
    • 1970-01-01
    • 2020-04-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-07-24
    相关资源
    最近更新 更多