/* 使字体x居中 */
text-align: center;
/* 将line-heght设置和盒子高度一致实现字体y在背景图中居中 */
line-height: 60px;
实现效果
/* 使字体x居中 */
text-align: center;
/* 将line-heght设置和盒子高度一致实现字体y在背景图中居中 */
line-height: 60px;
实现效果