0

我想在我的时事通讯 (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>
4

1 回答 1

3

Javascript 在大多数(如果不是全部)电子邮件客户端中不起作用。

编辑:来自 Campaign Monitor 的 Ros 有一种适用于 mac 客户端的 css 驱动技术(大约是页面下方的三分之一)

于 2013-02-01T14:09:58.247 回答