如何使一个元素垂直居中 用box布局啊,只需要在外部加个包裹层就行 display:-webkit-box; -webkit-box-align:center; -webkit-box-pack:center; 就可以上下左右都居中了,