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

阅读 68

2022-05-07

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

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

0 0 举报