修改该页面的wxss文件
/* pages/weather/weather.wxss */
.weather{
position:
fixed;
height:
100%;
width:
100%;
display:flex;
flex-direction:column; /*纵向显示*/
align-items:center;/*垂直居中*/
justify-content:
center;/*水平居中*/
background:
#f2f2f8;
}
欢迎关注,有问题一起学习欢迎留言、评论。
你要保守你心,胜过保守一切。
作者:刘俊涛的博客