首页 > 解决方案 > 如何将超链接添加到 HTML 电子邮件|twitter|linkedin 正文?

问题描述

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

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%20特别是%20on% 20the%20home%20front。%20他%20相信%20那个%20那个%20只有%20选项%20是%20到%20战斗%20上%2C%20甚至%20如果%20法国%20投降%2C%20但是%20他%20位置%20剩下%20不稳定%20直到%20张伯伦%20解决%20到%20support%20him.%20The%20war%20end%20on%204%20June%201941%2C%20with%20the%20疏散%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% 20 成员。%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%20成为%20the%20Prime%20Minister% 20of%20the%20United%20Kingdom.%20

这是我在我的 HTML 中使用的:

<a class="twitter" href=""</a>
<a class="email" href=""</a>
<a class="linkedin" href=""</a>

参考资料:

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

标签: htmlhyperlinkhreflinkedin

解决方案


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

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


推荐阅读