我有以下fiddle并且我试图让facebook和twitter完美地并排排列,但我不能因为我认为facebook在加载脚本后会进行一些重新布局。任何人都可以帮助我如何使这看起来很漂亮,并将它们并排排列。这是一些代码:
<div class="row shop-share-items">
<iframe src="//www.facebook.com/plugins/like.php?href=http://www.google.com&width&layout=button_count&action=like&show_faces=false&share=true&height=35&appId=467928753241936" scrolling="no" frameborder="0" style="border:none; overflow:hidden; height:35px;" allowTransparency="true"></iframe>
<a href="https://twitter.com/share" class="twitter-share-button" data-url="http://www.google.com" data-via="google" data-lang="id" data-hashtags="google">Tweet</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>
答案 0 :(得分:1)
答案 1 :(得分:0)
将类添加到Facebook iframe,例如fb-share
然后使用CSS
.fb-share {
width: 135px;
}
.fb-share,
.twitter-share-button {
display: inline-block;
float: left;
}
更新了Fiddle