谷歌+1按钮作为链接?

时间:2011-07-07 19:55:01

标签: css button hyperlink social-networking

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

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

我不喜欢iframe

1 个答案:

答案 0 :(得分:2)

要避免使用iframe,您可以使用: +1 your website

代码+ 1'ing 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>