我希望 facebook like 按钮、twitter 按钮和语言选择器都对齐在同一级别(即,距页面底部几 px)。目前,正如您在图片中看到的,所有这 3 个元素都有不同的垂直对齐方式。你能帮我识别和解决这个问题吗?
HTML 代码:
<div id="footer">
<div id="social"><div class="fb-like" data-href="http://www.gregsitedfds.com" data-send="false" data-layout="button_count" data-width="106" data-show-faces="false" data-font="verdana"></div><a href="https://twitter.com/share" class="twitter-share-button" data-lang="msa">Tweet</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
</div>
<span class="languageselector"><a href="fr/" title="Version Française">FR</a> | <a href="en/" title="English Version">EN</a> | <a href="index.htm" title="Norway Version">NO</a></span></div>
CSS代码:
#footer
{
position:fixed;
bottom:0;
color:#333;
left:0;
z-index:999;
width:96%;
text-align:right;
padding:30px 2%;
}
#social
{
position:absolute;
vertical-align:middle;
left:2%;
color:#333;
}