gpt4 book ai didi

outlook - HTML 电子邮件中的前置文本

转载 作者:行者123 更新时间:2023-12-05 08:55:28 26 4
gpt4 key购买 nike

我在我的 HTML 模板中添加了预报头文本并且工作正常,但是当有人从 Outlook 转发时事通讯时,该文本显示在顶部。但在 Gmail 中不会发生这种情况。

<style>
.preheader {
display:none !important;
visibility:hidden;
opacity:0;
color:transparent; height:0; width:0; }
</style>
</head>
<body>
<span class="preheader" style="display: none !important; visibility: hidden;
opacity: 0; color: transparent; height: 0; width: 0;">
We are offering a six-week Indonesian language course for adult learners.
</span>

谢谢!

有人转发时事通讯时的截图

enter image description here

最佳答案

为了跨环境获得最佳结果,您最好内联 CSS。我一直将其用于预报头。

<div style="display:none; font-size:1px; color:#e5e5e5; line-height:1px; font-family:Verdana, Helvetica, sans-serif; max-height:0px; max-width:0px; opacity:0; overflow:hidden; mso-hide:all;">
PREHEADER TEXT HERE
</div>

关于outlook - HTML 电子邮件中的前置文本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45807788/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com