document.getElementsByTagName("body")[0].style.height = document.documentElement.clientHeight + 70 + "px";//将body高度设为高出显示区域的高度。
setTimeout(hideURLbar, 0);
function hideURLbar() {
  window.scrollTo(0, 1);
  document.getElementsByTagName("body")[0].style.height = window.innerHeight + "px";//隐藏完之后,再将body高度设回满屏高度。
}

相关文章:

  • 2021-10-31
  • 2022-12-23
  • 2022-12-23
  • 2022-02-08
  • 2022-12-23
  • 2022-01-12
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-02-17
  • 2022-12-23
  • 2021-12-08
  • 2021-12-07
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案