【问题标题】:Google+ button broke tooltipGoogle+ 按钮损坏了工具提示
【发布时间】:2012-06-15 16:02:04
【问题描述】:

我创建了我的Portfolio 并在其中放置了一个 Google+ 按钮。页面仍然没有样式,损坏的工具提示让我放慢了速度。问题出在哪里?

【问题讨论】:

    标签: javascript css html google-plus-one


    【解决方案1】:

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

    如果我去掉那个样式表,它应该可以工作。

    【讨论】:

    • 非常感谢。我禁用了所有样式,它可以工作!!!但是我之前已经做过了,它没有用,但现在我已经清理了浏览器缓存,一切都很好。
    【解决方案2】:

    我不确定你去哪里了那个代码,但你想替换它: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>
    

    【讨论】:

    • 我页面中的代码来自该网址。我刚刚选择了html5兼容性。
    【解决方案3】:

    代替:

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

    试试:

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

    【讨论】:

    • 怎么样?
    猜你喜欢
    • 2016-04-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-10-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多