当前位置: 代码迷 >> 网页设计 >> CSS代码,会的进。解决思路
  详细解决方案

CSS代码,会的进。解决思路

热度:129   发布时间:2012-03-18 13:55:39.0
CSS代码,会的进。。。
CSS code

 body
  {
    margin:0 auto;
  }
    #Main
    {
        border:1px solid red;
        margin:0 auto;
        width:300px;
        height:300px;
    }


Main 是DIV的ID,为什么Main这个DIV在页面上不能左右居中?

------解决方案--------------------
路过,不会就到http://www.w3school.com.cn/上去学习
  相关解决方案