div水平居中,margin:0px auto; 在 2012/09/232012/09/23 上张贴 由 一然 让div水平居中,可以通过margin:0px auto;width:’定值’;这俩个缺一不可,其中必须注意的是width必须为“定值”。