分享锚链接 [英] Share anchor links

查看:327
本文介绍了分享锚链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想制作一个以此形式共享链接的按钮:

I want to make a button that shares links in this form:

http://example.com/#anchor

但是当我点击它时,它只共享

but when i click it, it shares only

http://example.com

我把它分享给我想要的东西?

How could I make it share what I want?

推荐答案

你的问题不是很详细, '要求..

Your question is not very detailed and it's not easy to understand exactly what it is you're asking for..

由于分享功能已被弃用,我假设您正在谈论喜欢按钮
正如您可以在该页面中看到的那样,您可以将所需的URL放入URL to Like字段中,然后单击获取代码按钮,并在页面中使用该代码。

Since the share functionaliy was deprecated I assume that you are talking about the Like button. As you can see in that page you can put what ever url you want into the "URL to Like" field, then click the "Get Code" button and use that code in your page.

您可以将代码放在任何页面中,所以如果您的页面是:example.com/#anchor,您仍然可以使用http://example.com或

You can put the code in any page, so if your page is: "example.com/#anchor" you can still have the button like "http://example.com" or the other way around.

如果您希望用户喜欢example.com/#anchor,但是当有人点击喜欢的链接时,他会得到例子。 com,那么这是不可能的。

If however you want the user to like "example.com/#anchor" but when someone clicks on the liked link he will get to "example.com" then it's not possible.

这篇关于分享锚链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆