【发布时间】:2012-02-26 20:56:21
【问题描述】:
上下文
我想在我的新网站上显示 Twitter 和 Facebook 按钮。
但我遇到了对齐问题。
代码
html:
<span id="social">
<a href="https://twitter.com/share" class="twitter-share-button" data-via="guillaumgregoir">Tweet</a>
<div class="fb-like" data-href="http://csstooltip.com" data-send="false" data-layout="button_count" data-width="450" data-show-faces="false"></div>
</span>
css:
#social {
display: inline-block;
margin-left: 24px;
}
div.fb-like {
display: inline-block !important;
margin-left: 100px;
margin-top: -20px;
}
【问题讨论】:
-
这里的 CSS 和/或 JavaScript 肯定比这里要多。您提供的 CSS 无法完成图片中显示的内容。
标签: html css html css button alignment social-networking