gpt4 book ai didi

javascript - 链接阅读有关新闻通讯 HTML 的更多信息

转载 作者:行者123 更新时间:2023-11-28 20:39:38 24 4
gpt4 key购买 nike

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

最佳答案

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

编辑:Campaign Monitor 的 Ros 有一个由 CSS 驱动的技术 works on the mac clients (大约是页面下方的三分之一)

关于javascript - 链接阅读有关新闻通讯 HTML 的更多信息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14644559/

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