The WeChat mini-program native components camera, canvas, input (only behaves as a native component when focused), live-player, live, pusher, map, textarea, and video have the highest hierarchy. No matter how much the z-index of other components on the page is set, they cannot cover the native components. From the effect in the figure, we can see that the input content penetrates into the selection list custom component. The solution is: <cover-view class="cover-view" style="{{height}}" wx:if="{{isShowModel}}"> <cover-view class="selectModel"> <cover-view class="model" @tap="onShowOrHideModel()"></cover-view> <cover-view class="modelBox"> <cover-view class="title">{{title}}(multiple selections possible)</cover-view> <cover-view class="list"> <block wx:for="{{waitClassifyNamesList}}" wx:key="{{index}}"> <cover-view class="li" @tap="onClickSelect({{item.optionCode}})"> <cover-image wx:if="{{filter.isInclude(item.optionCode,classifyIds)}}" class="icon" src="/image/signatory/selected.png"></cover-image> <cover-image class="icon" src="/image/signatory/unSelect.png" wx:else></cover-image> <cover-view class="name">{{item.optionName}}</cover-view> </cover-view> </block> </cover-view> <cover-view class="btn" @tap="onSubmitSelectService">Confirm</cover-view> </cover-view> </cover-view> </cover-view> The implementation effects of the two methods are shown in the figure above. As for which method to choose, choose according to actual needs. This is the end of this article about how to solve the problem of excessive penetration of WeChat mini-program input and textarea levels. For more relevant mini-program input and textarea penetration content, please search for previous articles on 123WORDPRESS.COM or continue to browse the related articles below. I hope everyone will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: Things to note when designing web pages for small-screen mobile devices
>>: Creative opening effect achieved by combining CSS 3.0 with video
Introduction: The disadvantages of storing all da...
Copy code The code is as follows: <iframe id=&...
Table of contents Preface: Implementation steps: ...
1. Scenario description: Our environment uses mic...
Because I wrote the word transition incorrectly i...
Technology Fan html web page, you must know vue f...
Method 1: Download Pycharm and install Download a...
MySQL itself does not support recursive syntax, b...
1 Introduction Thread technology was proposed as ...
Mysql query time period intersection Usage scenar...
01 The concept of parallel replication In the mas...
1: Docker private warehouse installation 1. Downl...
Table of contents Basic instructions and usage An...
Preface In a common business scenario, we need to...
Win10 installs mysql5.7 decompressed version, for...