【问题标题】:Link Read More on a Newsletter HTML链接阅读更多关于时事通讯 HTML
【发布时间】:2013-01-16 15:54:19
【问题描述】:

我想在我的时事通讯 (HTML) 中插入一个典型链接“阅读更多...”,该链接在我的电子邮件中展开/隐藏我的新闻,并提供更多信息(更多文本)。对于邮件平台(gmail、outlook..)上的作品,我该如何做到这一点?

我知道如何使用这样的 javascript 在网页上执行此操作,但在电子邮件中这不起作用。

< html>
...

< script type='text/JavaScript'>
function verocultar(cual) {
var c=cual.nextSibling;

if(c.style.display=='none') {
c.style.display='block';
} else {
c.style.display='none'; }
return false;
}

</ script>

...

< p>Fusce tempor ....< / p>

< a  onclick="return verocultar(this);" href="javascript:void(0);">< img src="images/read-more-btn.gif" alt="Read More" width="102" height="27" border="0">< / a> < p>As you look out on that coupon- and candy-trimmed future, we're sure you're reflecting on all that has gone by this year: All the milestones and memories. All the mistakes and monstrosities.
     Cloth.< / p>

....

< / html>

【问题讨论】:

  • 你不能。它不会在全球范围内得到支持。无论如何你都应该放弃这个想法
  • 查看 mailchimp.com 或 salesforce
  • 我必须同意上面的 2 个答案。我花了很多时间玩电子邮件...不要试图变得太复杂,因为一旦你这样做,它就会开始在不同的邮件客户端中产生不同的结果。
  • 大多数电子邮件客户端不支持头部部分中的标签,如
  • 是的,但我需要显示隐藏的文本...它是针对公司的,所以我无法打开弹出式浏览器,我需要显示电子邮件通讯中的内容。

标签: javascript html gmail newsletter mhtml


【解决方案1】:

Javascript 不适用于大多数(如果不是全部)电子邮件客户端。

编辑:来自 Campaign Monitor 的 Ros 有一个 css 驱动的技术,works on the mac clients(大约在页面下方的三分之一处)

【讨论】:

  • ……因此你不能。如果您想要互动内容,请链接到网站。
  • 我知道,但我想找到自通讯邮件平台以来的方式和互动。
  • 电子邮件只有 html 和有限的 css。现代网络的所有花里胡哨都不可用。您找到的任何解决方案都不会得到广泛支持。
猜你喜欢
  • 2017-02-09
  • 2015-08-25
  • 2012-02-21
  • 1970-01-01
  • 1970-01-01
  • 2013-07-26
  • 1970-01-01
  • 2016-11-12
  • 1970-01-01
相关资源
最近更新 更多