2015-10-13 31 views
0

我想在按鈕左側的G +分享按鈕中設置計數器。 我使用下面的代碼段:如何在G +分享按鈕左側設置Google plus計數器

<div class="social-button-fixed" id="share-btn3"> 
<g:plus action="share" href="returnPageUrl()" annotation="bubble" height="60" align="left" expandTo="left"></g:plus> 
</div> 
<script > 
    window.___gcfg = { 
    lang: 'en-US', 
    parsetags: 'onload' 
    }; 
</script> 
<script src="https://apis.google.com/js/platform.js" async defer></script> 

但它顯示在按鈕的右側櫃檯:

enter image description here

我怎樣才能使它顯示在左邊?

+0

https://developers.google.com/+/web/+1button/?hl=zh-CN –

+0

@Paulie_D這是+1按鈕,分享按鈕doc是這一個:https://developers.google.com/+/web/share/ 但它不告訴我如何定位計數器... – Jahid

回答

0

將註釋更改爲此「垂直氣泡」現在的計數器將出現在上方,並且您的佈局將被分成兩行(在它是一行佈局之前)現在爲tr標記給出浮動左側和寬度:現在爲25%兩者將進入一行,左側反色,右側G圖標現在只需調整CSS就像從計數器中刪除邊框並在那裏使用泡泡圖像,就是這樣。

+0

如何選擇'tr'? – Jahid

+0

您可以像這樣選擇tr #widget_bounds tr {0} {0} {0} float:left; 寬度:25%; } – Allen

+0

我試過了,但它沒有工作... – Jahid

0

你不能。計數器的位置由share tag attributeannotation控制。註釋泡沫支持兩個位置,bubble位於按鈕的右側,vertical-bubble位於上面。你可以看到examples of the positions

+0

看起來像這樣......我希望有一些解決方法或破解,但... – Jahid