Get the App
SLTechnology News&Howtos  ›  Development  › 

How to solve the drop-down blanks of Mini Program ios

Shulou Source: shulou.com Published: 2022-06-01 06:01:43 10月25日 Update

This article introduces in detail "How to solve the blank of Mini programs ios pull-down," with detailed content, clear steps and proper details. I hope this article "How to solve the blank of Mini programs ios pull-down" can help you solve your doubts. Let's go deeper and learn new knowledge together with the ideas of the small editor.

Method 1:

You can configure the "backgroundColor": "#ccc" attribute in the page.json file, which is more convenient. But for some full-screen background page experience is not very good

Method 2:

For some full-screen background pages, we can make the background fixed so that the experience is better, we can do the following:

1》page.json Set "disableScroll":true ; means: If set to true, the whole page cannot scroll up and down; only valid in page.json, cannot be set in app.json.

2. For some pages with too much content, you need to slide up and down the page. You can do this on the page.wxml page.

3》page.js

wx.getSystemInfo({

success: function (res) {

that.setData({

"wh": res.windowHeight

})

}

})

4 Full Screen Background Style

page{background: url(xxx.png) no-repeat center center fixed;background-size: cover; }

Read here, this article "Mini programs ios drop-down blank how to solve" article has been introduced, want to master the knowledge points of this article still need to be used by ourselves to understand, if you want to know more related content articles, welcome to pay attention to the industry information channel.

Tags: Page background program blank drop-down content article up and down way experience processing convenient proper effective attribute train of thought whole file new knowledge method Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi Redmi vpn macOS Apple