Google+按钮打破了工具提示

时间:2012-06-15 16:02:05

标签: javascript html css html5 google-plus-one

我创建了Portfolio并在其中添加了Google+按钮。页面仍然没有样式,破坏的工具提示正在减慢我的速度。问题在哪里?

3 个答案:

答案 0 :(得分:0)

我不确定你去哪里的代码但你想要替换它:http://www.google.com/webmasters/+1/button/

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

<!-- Place this render call where appropriate -->
<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 :(得分:0)

而不是:

<div class="g-plusone">
        </div>

尝试:

<g:plusone annotation="inline"></g:plusone>

答案 2 :(得分:0)

样式表css / style.css中存在导致问题的冲突样式。

如果我摆脱那个样式表就可以了。