position: absolute;top: 50%;transform: translate(-50%,-50%);left: 50%;CSS
来源: http://www.qdfuns.com/article/18128/67ef26cbaa3953aaed2fff45c77e7678.html