盒子居中的几种方法

method1:这种方法需要知道盒子的具体宽高,只有这样才能计算出对应的margin值(这种方法兼容所有浏览器)

 

method2:这种方法不兼容低版本ie

posted @ 2017-06-27 07:15  yourDestiny2049  阅读(216)  评论(0)    收藏  举报