0
这是失败的jsfiddle link。我想有buttonCenter位于黑盒子下面的图片中格:Div定位 - Css
如何做我必须要改变的CSS类buttonCenter:
#buttonCenter {
width: 250px;
height: 100px;
margin-right:auto;
margin-left:auto;
margin-top:100px;
background-color:gray;
}
谢谢提前
正确的,良好的工作。 +1 – Ruddy
非常感谢,很好的回答! – anilca
@anilca您好,如果您希望摆脱不必要的浮动,请确保使用'clear:both;'清除它们,尤其是使用浮动元素的#buttonsContainer容器,请阅读我的答案[here]( http://stackoverflow.com/questions/12871710/why-clear-both-css),知道为什么这是必要的 –