A compatibility problem and its solution

A compatibility problem and solution

Problem Description:

  • Environment: WeChat Mini Program:
  • Question: Set the height of the page to auto, and the size of the page becomes the height of the content. After clicking, there are other components displayed. On Android, the components can be displayed completely, but on the iPhone, the displayable area is only the original content height. The rear display assembly will be blocked.

Solution:

  • The height of the page will not be set. Then the entire page defaults to the height of the viewport. Later components can be fully displayed.

Guess you like

Origin blog.csdn.net/weixin_40944062/article/details/107635128