i used below code to set text vertically and horizontally center
图片链接
原图
外链