2012-07-11 55 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。如果您爲此功能請求發佈主題,則會通知您有關更新的信息。

相關問題