method1:这种方法需要知道盒子的具体宽高,只有这样才能计算出对应的margin值(这种方法兼容所有浏览器)
method2:这种方法不兼容低版本ie
盒子居中的几种方法
原文:http://www.cnblogs.com/yourDestiny2017/p/7083193.html