WeChat applet apple ios fixed positioning position:fixed failure bug

Problem: The bottom fixed bar setting position: fixed; blocks the content below

The margin-bottom of the above view is set, everything is normal in the WeChat development tool, and the display is fine on the Android real device, but the Apple real device does not work.

After searching online for a long time, I found that in addition to adding padding and margin to the above view, it is also necessary to set the wxss style for the page tag:

overflow-y: hidden; overflow-x: hidden;
page{
    
    
  height: 100%;
  overflow-y: hidden;
  overflow-x: hidden;
}

おすすめ

転載: blog.csdn.net/joe0235/article/details/119445825