在某个div中使文字水平和竖直都居中可以用text-align:center、line-height:?px 大小为你的父级元素的高度(不考虑内边距)
text-align:center
line-height:?px