0
点赞
收藏
分享

微信扫一扫

如何将微信小程序页面内容充满整个屏幕

如何将微信小程序页面内容充满整个屏幕_垂直居中

修改该页面的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;

}


欢迎关注,有问题一起学习欢迎留言、评论。

你要保守你心,胜过保守一切。

作者:刘俊涛的博客​


举报

相关推荐

0 条评论