I used the textarea of the mini program to do a project before, because I used the phone of Android system, there was no problem in the test, but later the product told me that there was something wrong with the display of his phone, the label and box were not aligned. After I looked through the API document of the mini program, I found that this problem would occur in the IOS system. And the API documentation provides the following resolution properties:
<textarea placeholder-class="textarea-placeholder" disable-default-padding="true" placeholder="Please enter" />
Copy the code
Setting disable-default-padding to true removes the default padding on iOS:
disable-default-padding=”true”
The default value of disable-default-padding is false