uni-app flex 1 纵向无法占据全部高度
uni-app About 78 words场景
需要给根元素设置背景以保证整个屏幕有背景色。
设置了子元素flex: 1
却没有占据整个屏幕。
解决方法
设置根元素min-height: 100vh
。
Views: 4 · Posted: 2025-08-08
————        END        ————
Give me a Star, Thanks:)
https://github.com/fendoudebb/LiteNote扫描下方二维码关注公众号和小程序↓↓↓

Loading...