在知道父容器的宽度的时候我们可以根据margin:0 auto;来进行水平居中
在父容器宽度不知道的情况下:那么光是margin:0 auto是不管用的
那么我们可以设置 display:table;margin:0 auto;来进行水平居中