【问题标题】:Best way to put facebook, twitter and Google+ share buttons in html? [closed]将 facebook、twitter 和 Google+ 共享按钮放在 html 中的最佳方式? [关闭]
【发布时间】:2013-03-03 16:01:17
【问题描述】:

我在 google 中搜索,我看到了在 html 中放置共享按钮的无限方法,但我更愿意在这里询问最好的方法。实现它的最简单的方法和最简单的方法。

我只想将此添加到我的网站:

谢谢

【问题讨论】:

    标签: html share social-networking


    【解决方案1】:
    <!-- AddThis Button BEGIN -->
    <div class="addthis_toolbox addthis_default_style ">
    <a class="addthis_button_facebook_like" fb:like:layout="button_count"></a>
    <a class="addthis_button_tweet"></a>
    <a class="addthis_button_pinterest_pinit"></a>
    <a class="addthis_counter addthis_pill_style"></a>
    </div>
    <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=xa-513375c7395449c1"></script>
    <!-- AddThis Button END -->
    

    You can customize it here: Add This

    【讨论】:

    【解决方案2】:

    Facebook 已经从他们的插件列表中删除了“分享”按钮。但是,旧代码确实有效。或者考虑使用“发送”按钮。

    您可以尝试addthis 并免费获得分析。

    Sharethis也是一个不错的选择

    【讨论】:

      【解决方案3】:

      对于过多的社交共享选项,我认为最好使用现有的库,它可以为您完成所有工作。一个例子是AddThis 平台

      【讨论】:

      • 该网站没有 google plus 按钮 :S。我也不喜欢它,因为他们放了他们的按钮,我不想展示它,我只想要 google+ facebook 和 twitter
      • 也许 ShareThis 更符合你的喜好:sharethis.com
      猜你喜欢
      • 2013-12-10
      • 2011-06-22
      • 2014-07-28
      • 1970-01-01
      • 1970-01-01
      • 2012-01-08
      • 2013-04-13
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多