How to understand the problem that the height of window.screen.height will become very high even if you add the height of 1px.

this is the code to get the screen height:

mounted() {
    document.getElementsByClassName("bgColor")[0].style.cssText =
      "width: 100%; height: " +
      window.screen.height +
      "px;z-index: -1; background-color: -sharpf5f5f5";
  }

this is a screenshot full of screenshots. The following balance payment options cannot be pulled down

46px:


46px46pxheight:auto

Css
Mar.17,2021

I don't think you can pull it down. Can you consider setting margin or padding for the element document.getElementsByClassName ("bgColor") [0]? Do you want to go beyond partial scrolling?


(window.screen.height + 46) + "px;z-index:-1; background-color:-sharpf5f5f5";


I don't think it's possible to write this way here

window.screen.height + "46px;z-index: -1; background-color: -sharpf5f5f5";

//
window.screen.height + 46 + "px;z-index: -1; background-color: -sharpf5f5f5";
640 + "46px" = 64046px;
640 + 46 + "px" = "686px";
Menu