On Mini Program's textarea level

as shown in the figure, I want to add a line of text and pictures to the multi-line text box, but in Mini Program, textarea seems to be the highest level by default. Setting z-index does not work, and textarea will always overwrite this line of text and icons.

Mar.28,2021

you can use js to control the hiding and display of non-textarea parts, just like using div to simulate input setting the default value


setting the floating content to position:fixed can be displayed on the upper layer of textarea


textarea component is a native component created by the client, and its level is the highest, so you can't control it through z-index. Try cover-view

.
Menu