【问题标题】:How can I add hyperlink to an HTML email|twitter|linkedin body?如何将超链接添加到 HTML 电子邮件|twitter|linkedin 正文?
【发布时间】:2021-10-28 12:32:27
【问题描述】:

我有一个带有 3 个共享按钮(电子邮件、Linkedin、twitter)的小网站。
我正在尝试分享一个看起来很糟糕的链接:

http://mywebsite.com/index?Summary=Churchill%20succeeded%20as%20an%20orator%20despite%20being%20handicapped%20from%20childhood%20with%20a%20speech%20impediment.%20He%20had%20a%20lateral%20lisp%20and%20was%20unable%20to%20pronounce%20the%20letter%20s%2C%20verbalising%20it%20with%20a%20slur.%20His%20first%20speech%20as%20prime%20minister%2C%20delivered%20to%20the%20commons%20on%2013%20may%20was%20the%20%22blood%2C%20toil%2C%20tears%20and%20sweat%22%20speech.%20His%20use%20of%20rhetoric%20hardened%20public%20opinion%20against%20a%20peaceful%20resolution%20and%20prepared%20the%20british%20people%20for%20a%20long%20war.%20He%20drafted%20outside%20experts%20into%20government%20to%20fulfil%20vital%20functions%2C%20especially%20on%20the%20home%20front.%20He%20believed%20that%20the%20only%20option%20was%20to%20fight%20on%2C%20even%20if%20france%20capitulated%2C%20but%20his%20position%20remained%20precarious%20until%20chamberlain%20resolved%20to%20support%20him.%20The%20war%20ended%20on%204%20June%201941%2C%20with%20the%20evacuation%20of%20dunkirk%20from%20allied%20servicemen%2C%20and%20the%20battle%20of%20france%20from%20france%20ended%20on%20tune%20on%204%20February%201942.%20He%20died%20of%20a%20heart%20attack%20in%20December%201941%2C%20at%20the%20age%20of%2048.%20He%20was%20succeeded%20by%20his%20son%2C%20the%20future%20prime%20minister%20of%20the%20UK%2C%20Edward%26nbsp%3BChurchill%2C%20who%20was%20also%20a%20war%20cabinet%20member.%20His%20funeral%20was%20held%20at%20St%20Paul's%20Cathedral%2C%20London%2C%20on%2011%20December%201941.%20He%20is%20buried%20in%20a%20plot%20of%20land%20he%20inherited%20from%20his%20father%2C%20which%20he%20had%20inherited%20when%20he%20became%20prime%20minister%20in%201940.%20He%20also%20had%20a%20house%20of%20honour%20at%20St%20James'%20Palace%2C%20London.%20His%20son%2C%20Edward%2C%20later%20became%20the%20Prime%20Minister%20of%20the%20United%20Kingdom.%20

这是我在 HTML 中使用的:

hrefs:

  • 电子邮件: "mailto:?body=查看这篇文章摘要" +ugly_url + "&subject=摘要工具";

  • twitter:“https://twitter.com/intent/tweet?text="+ugly_url

  • linkedin:"https://www.linkedin.com/shareArticle?mini=true&url=" +ugly_url + "&title=Temporary Title&source=Chillyfacts";

如何将凌乱的 URL 转换为超链接?
mylink

【问题讨论】:

  • 可能是拼写错误,但您没有关闭您发布的 HTML 代码中的开头 a 标记。 (即> 丢失了 3 次)

标签: html hyperlink href linkedin


【解决方案1】:

您似乎正在尝试通过创建带有内置参数的链接来与网站交互。正确的方法是创建一个与这些网站交互的 API。

网站通常有专门向您展示如何做到这一点的页面。您通常可以通过谷歌搜索“websiteName API”找到它们。例如,Twitter 是 this

【讨论】:

    猜你喜欢
    • 2012-10-29
    • 2013-08-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-01-15
    • 2020-12-09
    相关资源
    最近更新 更多