.foot不加margin:o auto 为什么也是居中???
.foot里不加margin:0 auto 为什么也是居中???代码如下:
.top{height:100px;background:blue}
.main{width:800px;height:300px;background:#ccc;margin: 0 auto}
.foot{width:800px;height:100px;background:#900;}
.foot里不加margin:0 auto 为什么也是居中???代码如下:
.top{height:100px;background:blue}
.main{width:800px;height:300px;background:#ccc;margin: 0 auto}
.foot{width:800px;height:100px;background:#900;}
2016-03-21
举报