2012-07-11 53 views
0

我在我的网站上输入了代码Google Plus BadgeGoogle +1 Button
我需要指向Google+信息页的链接(由徽章生成)在新窗口中打开。

如果你有其他的方式,我需要:如何打开Goog​​le Plus徽章新窗口中的链接?

  • 链接到Google+专页。
  • 添加功能添加到圈子。
  • +1带按钮的按钮。

全部在一条线上。

我的代码看起来为:

<table> 
<tr> 
<td style="padding-top:2px; vertical-align:top;"><div style="width:180px; height:30px;  overflow:hidden;"> 
<div style="margin-top:-15px; margin-left:0px;" title="International Studies Google   Plus"> 
       <style type="text/css"> 
          #___plusone_0, #___plusone_0   iframe{ 
           width:66px !important; 
          } 
          </style> 
       <div class="g-plus" data-href="https://plus.google.com/118182458881247471225?rel=publisher" data-width="170" data-height="69" data-theme="light"></div> 
       </div> 
      </div></td> 
       <td style="padding-top:6px; padding-left:5px;"><g:plusone></g:plusone> </td> 
</tr> 
</table> 

回答

0

你不能做到这一点。

徽章没有提供任何标志,允许您在新窗口中打开链接。这也是唯一提供您所需的“添加到圈子”功能的功能。

,你可以得到最接近的将是使用静态徽章和+1按钮:

<div> 
    <a href="https://plus.google.com/118182458881247471225?prsrc=3" rel="publisher" style="text-decoration:none;" target="_blank"> 
    <img src="//ssl.gstatic.com/images/icons/gplus-32.png" alt="Google+" style="border:0;width:32px;height:32px;"/></a> 

    <div class="g-plusone" data-annotation="inline" data-width="300"></div> 
</div> 

此外,它看起来像有这个功能的feature request。如果您为此功能请求发布主题,则会通知您有关更新的信息。

相关问题