我有一个sicky页脚CSS文本对齐不工作
display:table-row;
的文本居中。
我希望版权与左侧对齐,社交媒体与右侧对齐。我这样做:
<div id="footer">
<div id="container">
<span id="copyright">Copyright 2015</span>
<span id="socials">facebook</span>
</div>
</div>
的CSS
#footer {
display: table-row;
height: 10px;
}
#copyright { text-align: left;}
#socials { text-align: right;}
它似乎并不一致。请帮忙。感谢
呢? https://jsbin.com/cakogorito/edit?html,output – bassxzero
将text-align应用于父级以对齐父级的内联元素内容。 – StickMaNX