页面底部出现莫名的空白
#11867
Replies: 5 comments 1 reply
-
即使是body元素,也在底部这空白之上,无法理解,找不到这段空白的来源 |
Beta Was this translation helpful? Give feedback.
0 replies
-
html和body的高度已经是100vh了,可是100vh之下还有一段空白 |
Beta Was this translation helpful? Give feedback.
0 replies
-
这并非是个问题,html、body 都不是页面,可以检查页面节点具体的大小 |
Beta Was this translation helpful? Give feedback.
1 reply
-
page才是最顶层吧 你设置100% |
Beta Was this translation helpful? Give feedback.
0 replies
-
多说一句,100vh会有问题 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
相关平台
H5
复现仓库
无
浏览器版本: Chrome 102
使用框架: React
复现步骤
想做一个header部分固定,中间内容滚动的页面,页面总共2个子元素:一个固定高度header,一个flex:1的scrollView
页面样式:
scrollView样式
期望结果
一个高度100vh,header固定,内容滚动的页面
实际结果
页面底部出现空白,且检查元素,无法定位此空白的来源(body元素都在这空白之上)
环境信息
Beta Was this translation helpful? Give feedback.
All reactions