微信小程序居中代码 html页面: { text-align:center; } wxss页面: { 100%; height: 100%; display: flex; justify-content: center; }