2015-10-05 76 views
0

我使用的是標準的分享按鈕插件Google +以及按鈕後,有一些文字,上面寫着「分享到Google+」:在Google分享按鈕後刪除「在Google+上分享此內容」?

<script > 
    window.___gcfg = { 
     lang: 'zh-CN', 
     parsetags: 'onload' 
    }; 
</script> 
<script src="https://apis.google.com/js/platform.js" async defer></script> 

我想隱藏或刪除文字,但由於它在iFrame中,所以不可能用CSS來完成。我發現文檔缺少或混淆他們的開發頁面上的這個分享按鈕。

https://developers.google.com/+/web/share/

有什麼辦法刪除的文字?

回答

3

您可以使用數據標註屬性,並將其值設置爲none,如:

<div class="g-plus" data-action="share" data-annotation="none"></div> 

這裏更多的信息的文檔的share tag attributes內。