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
If you want to display extra text as ellipsis in ...
Recently, the following effects need to be achiev...
Preface This article introduces the use of vue-ro...
HTML is made up of tags and attributes, which are...
In some scenarios, we need to modify our varchar ...
Project Purpose Migrate the data in MySQL 5.5.53 ...
Nginx supports three ways to configure virtual ho...
css3 background image related Compatibility: IE9+...
Often you will encounter a style of <a> tag ...
This article shares the specific implementation c...
1. Rendering JD Effect Simulation Effect 2. Princ...
As shown below: name describe character varying(n...
1. Concept Analysis 1: UE User Experience <br ...
<br />When thoughts were divided into East a...
Table of contents Working principle: What does th...