2013-10-15 27 views
0

我試圖讓社交媒體(谷歌+,臉譜,微博)在一行,但每個社交媒體有不同的路線。 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> 
+0

任何人都可以幫忙嗎? – john

回答

1

哪裏是你<div> </div>對於Facebook和Twitter?

+0

爲facebook我使用iframe和twitter喜歡 – john