gpt4 book ai didi

android - chrome #urlbar 隐藏时如何避免向下滚动

转载 作者:行者123 更新时间:2023-12-04 07:14:17 25 4
gpt4 key购买 nike

即使我将 body 和 html 高度设置为 100vh,我的网站也处于移动响应滚动状态。

html,
body{
height: 100vh
}
我也计算了 chrome #urlbar 但仍然滚动
@supports (-webkit-appearance:none) {
.fixed-view {
height: calc(92vh - 56px);
}
}
my mobile screen
mobile screen in show of chrome #urlbar

最佳答案

我也有这个问题,设置样式:

html, body {
height: 100%;
}
就够了。

关于android - chrome #urlbar 隐藏时如何避免向下滚动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68879736/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com