HTML电子邮件签名

罗尼

我正在尝试制作HTML电子邮件签名。

我已经设法按照我希望的方式获得它,但是与Web上的Outlook相比,在Outlook客户端中查看签名时似乎发生了一些奇怪的事情,请参见下图。

这是在网络上查看时的样子。 Web上的Outlook

这就是在Outlook客户端中查看时的样子。

在此处输入图片说明

这是我的HTML。

<html>
<body>
  <img src="https://static1.squarespace.com/static/5755c2b9356fb0c7e2943cf6/t/58800e158419c2ec7abbbd80/1484787227067/TheTest_banner_r2.png?format=2500w" width="571" height="168">

  <div class="links" style="font-size: 15px;">
    <a href="#"><p>Test</p></a><p> | </p>
    <a href="#"><p>Test</p></a><p> | </p>
    <a href="#"><p>Test</p></a><p> | </p>
    <a href="#"><p>Test</p></a><p> | </p>
    <a href="#"><p>Test</p></a><p> | </p>
    <a href="#"><p>Test</p></a>
  </div>

  <p style="font-size: 11px;">Lorem Ipsum is simply dummy text of the printing and typesetting industry. <br/>Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, </p>

</body>
</html>

这是我的CSS。

p {
  font-family: Georgia;
  color: rgb(22, 31, 53);
}
a {
  color: rgb(22, 31, 53);
}
.links p {
  color: rgb(22, 31, 53);
  display: inline;
}

https://codepen.io/atomicaltv/pen/rogxMO

阿加什·塔莫(Agash Thamo)。

好的,看来Outlook不喜欢更改显示属性。我打开你的代码一点,所以它使用范围元素,而不是p aragraphs,于是他们自然就对准你希望他们的方式,而不使用显示属性。

这是原始文件(无内联CSS):

body {
  font-family: Georgia;
  color: rgb(22, 31, 53);
}

.links {
  color: rgb(22, 31, 53);
}

.links .link-text {
  color: rgb(22, 31, 53);
}
<!DOCTYPE html>
<html>

<body>
  <img src="https://static1.squarespace.com/static/5755c2b9356fb0c7e2943cf6/t/58800e158419c2ec7abbbd80/1484787227067/TheTest_banner_r2.png?format=2500w" width="571" height="168">

  <div class="links" style="font-size: 15px;">
    <a href="#"><span class="link-text">Test</span></a><span> | </span>
    <a href="#"><span class="link-text">Test</span></a><span> | </span>
    <a href="#"><span class="link-text">Test</span></a><span> | </span>
    <a href="#"><span class="link-text">Test</span></a><span> | </span>
    <a href="#"><span class="link-text">Test</span></a><span> | </span>
    <a href="#"><span class="link-text">Test</span></a>
  </div>

  <p style="font-size: 11px;">Lorem Ipsum is simply dummy text of the printing and typesetting industry. <br/>Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, </p>
</body>

</html>

这是一个内联版本,我使用Office365 Outlook客户端进行了测试:

body {
  font-family: Georgia;
  color: rgb(22, 31, 53);
}

.links {
  color: rgb(22, 31, 53);
}

.links .link-text {
  color: rgb(22, 31, 53);
}
<!DOCTYPE html>
<html>

<body style="font-family: Georgia;color: rgb(22, 31, 53);">
  <img src="https://static1.squarespace.com/static/5755c2b9356fb0c7e2943cf6/t/58800e158419c2ec7abbbd80/1484787227067/TheTest_banner_r2.png?format=2500w" width="571" height="168">

  <div class="links" style="font-size: 15px;color: rgb(22, 31, 53);">
    <a href="#"><span class="link-text" style="color: rgb(22, 31, 53);">Test</span></a><span> | </span>
    <a href="#"><span class="link-text" style="color: rgb(22, 31, 53);">Test</span></a><span> | </span>
    <a href="#"><span class="link-text" style="color: rgb(22, 31, 53);">Test</span></a><span> | </span>
    <a href="#"><span class="link-text" style="color: rgb(22, 31, 53);">Test</span></a><span> | </span>
    <a href="#"><span class="link-text" style="color: rgb(22, 31, 53);">Test</span></a><span> | </span>
    <a href="#"><span class="link-text" style="color: rgb(22, 31, 53);">Test</span></a>
  </div>

  <p style="font-size: 11px;">Lorem Ipsum is simply dummy text of the printing and typesetting industry. <br>Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, </p>

</body>

</html>

注意:更改颜色的CSS是多余的。我保留了新元素的原样,以防您以后想要将其更改为实际有意义的东西。

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

HTML电子邮件签名显示问题

来自分类Dev

电子邮件签名

来自分类Dev

如何减小Photoshop渲染的HTML电子邮件签名的大小?

来自分类Dev

HTML电子邮件签名列向右浮动

来自分类Dev

HTML电子邮件签名中的按钮不可单击

来自分类Dev

如何使用在线托管的HTML电子邮件签名?

来自分类Dev

电子邮件数字签名

来自分类Dev

DKIM不签名电子邮件

来自分类Dev

为电子邮件添加签名

来自分类Dev

使用 googleAPI 获取电子邮件签名

来自分类Dev

电子邮件HTML画布

来自分类Dev

HTML电子邮件编码

来自分类Dev

HTML 电子邮件表单

来自分类Dev

Outlook.com中的HTML电子邮件签名一致性

来自分类Dev

Mac上的Outlook中的HTML电子邮件签名损坏-在Windows上工作正常吗?

来自分类Dev

我需要电子邮件签名HTML中的Alignin 2 TD帮助

来自分类Dev

Outlook.com中的HTML电子邮件签名一致性

来自分类Dev

HTML电子邮件签名以针对iPhone /小屏幕调整大小

来自分类Dev

DocuSign API - 发送给签名者的电子邮件 - 如何在电子邮件正文中启用 HTML 内容的链接?

来自分类Dev

通过MS Graph API发送电子邮件时包括电子邮件签名

来自分类Dev

HTML 4.01的HTML电子邮件错误

来自分类Dev

自动将电子邮件签名插入Outlook Meeting邀请

来自分类Dev

具有签名的Powershell打开电子邮件草稿

来自分类Dev

以编程方式向电子邮件添加签名

来自分类Dev

嵌入式签名案例的Docusign电子邮件通知

来自分类Dev

发送带有附件和签名的Outlook电子邮件

来自分类Dev

媒体查询电子邮件签名,可能吗?

来自分类Dev

请求DocuSign API签名时电子邮件未发送

来自分类Dev

具有Outlook格式的电子邮件签名

Related 相关文章

热门标签

归档