简体   繁体   English

单击时Google共享弹出窗口无法打开

[英]google share pop window not opening when click

I am using a google share button but for some reason it does not open a pop window and instead opens it on fullscreen in same window. 我使用的是Google分享按钮,但由于某种原因,它无法打开弹出窗口,而是在同一窗口中以全屏方式打开它。

<a class="google-plus" style="display:inline-block" href="https://plus.google.com/share?url=http%3A%2F%2Ftarunkrishna.com%2F" title="Share on Google+">
  <span class="fa fa-google-plus"></span>
</a>

You only have an <a> link, this is how they work. 您只有一个<a>链接,这就是它们的工作方式。 From the Google+ Share Link documentation you should include an onclick handler. Google+共享链接文档中,您应该包含一个onclick处理程序。 The full documented example is: 完整记录的示例是:

<a href="https://plus.google.com/share?url={URL}" onclick="javascript:window.open(this.href,
  '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;"><img
  src="https://www.gstatic.com/images/icons/gplus-64.png" alt="Share on Google+"/></a>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM