Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

页面高度的2:1分配问题 #2

Open
LJJCherry opened this issue Jan 11, 2017 · 2 comments
Open

页面高度的2:1分配问题 #2

LJJCherry opened this issue Jan 11, 2017 · 2 comments

Comments

@LJJCherry
Copy link

image
由于view外面自动添加了一层page标签,使用flex布局无法实现高度的2:1分配

@LJJCherry
Copy link
Author

可以给page自定义样式。。。

@wanjuanjuanv
Copy link

小程序中使用平时的px或者直接使用百分比对于高度全屏无效,这时候可以通过vh这个单位,整个屏幕默认满屏为100vh;所以在index.wxss中把.container 的高度设置为100vh;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants