2011-07-07 110 views
5

您可以将Google + 1按钮作为简单链接吗?Google +1按钮作为链接?

<a href="http://google.com/+1/url=http://mysite.com" class="google-plus1"> 
    + 1 
</a> 

我不喜欢的I帧

+2

看看这些lutions:[此处输入链路描述] [1] [1]:http://stackoverflow.com/questions/7157411/adding-a-google-plus-one-or-share-link-to -an-email-newsletter – JacobEvelyn

回答

2

为了避免内部框架,你可以使用这个: +1 your website

规范,+ 1 HTTP:// WWW。 example.com

<!-- Place this tag in your head or just before your close body tag --> 
<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script> 

<!-- Place this tag where you want the +1 button to render --> 
<g:plusone href="http://www.example.com"></g:plusone> 
+2

我更喜欢在用户点击按钮之前不需要从谷歌*加载任何数据的解决方案。一种“去这里+1我的网站”的链接。有**隐私的原因**不像这样嵌入pulsone API。在某些司法管辖区甚至可能是非法的。 –