如何给网站或博客增加 Google +1按钮

作者:     目录: PHP+MySQL     发表: 2011年06月02日

Google 刚刚发布了 Google 按钮,只需要2小段代码即可给你的网站或博客增加 Google +1 按钮。

在网站的<head>或<body>标签中增加下面的代码

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

在需要显示Google+1按钮的地方增加下面代码

<!-- Place this tag where you want the +1 button to render -->
<g:plusone size="tall"></g:plusone>

具体请参考 官方 Google +1按钮使用方法

2 个评论

  1. 诺陌说道:

    哇哦…头像好大…

  2. 诺陌说道:

    试了一下很简单…现在咱也用上了

发表评论