2

我是初学者网络程序员 - 请帮助我。

我有这个代码:

<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
            <g:plusone size="tall"></g:plusone>

我应该将他升级到异步片段:http: //googlewebmastercentral.blogspot.com/2011/07/1-button-now-faster.html

我的问题我没有在谷歌配置工具中选择与
<g:plusone size="tall"></g:plusone>我在网站中已有的大小相同的图像大小。

提前致谢

4

2 回答 2

2

选择“高”

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

<!-- Place this tag after the last plusone tag -->
<script type="text/javascript">
  (function() {
    var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
    po.src = 'https://apis.google.com/js/plusone.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
  })();
</script>

有关高级信息,请参阅此处的+1 标记参数部分:http ://code.google.com/apis/+1button/

于 2011-08-02T13:25:49.543 回答
2

我不确定你的想法是否正确。您不会更改按钮,而是更改脚本的行为方式。只需保留您的<g:plusone size="tall"></g:plusone>并相应地更改脚本

于 2011-08-02T13:23:31.453 回答