【问题标题】:how to avoid scroll down when chrome #urlbar hidechrome #urlbar隐藏时如何避免向下滚动
【发布时间】:2021-10-23 01:04:21
【问题描述】:

即使我将 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

【问题讨论】:

  • 这也是我的问题

标签: android html css google-chrome


【解决方案1】:

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

html, body {
height: 100%;
}

够了。

【讨论】:

  • 如此简短的回答! :D 非常感谢你
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2020-07-12
  • 2016-05-12
  • 2015-11-17
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多