如何让社交媒体在一条线上?

时间:2013-10-15 03:31:05

标签: html plugins facebook-social-plugins

我尝试将社交媒体(谷歌+,脸谱,推特)放在一行,但每个社交媒体都有不同的界限。 see this

此代码:

<div style="display:inline-block">
  <div style="float:left">
     <div class="g-plusone" data-size="small" data-href=""></div>
  </div>
  <div style="float:left">
     <iframe src="//www.facebook.com/plugins/like.php?href=https%3A%2F%2Fdevelopers.facebook.com%2Fdocs%2Fplugins%2F&amp;width=The+pixel+width+of+the+plugin&amp;height=21&amp;colorscheme=light&amp;layout=button_count&amp;action=like&amp;show_faces=false&amp;send=false&amp;appId=196962990473575" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:The pixel width of the pluginpx; height:21px;" allowTransparency="true"></iframe>
  </div>
  <div style="float:left">
     <a href="https://twitter.com/twitter" class="twitter-follow-button" data-show-count="false">Follow @twitter</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
   </div>
</div>

1 个答案:

答案 0 :(得分:1)

Facebook和Twitter的<div> </div>在哪里?