How to change the placeholder of WeChat Mini Programs textarea?

textarea::-webkit-input-placeholder:after{
  display:block;
  content:"line@ \A line-sharp";/*  \A   */
  color:red;
};
In

HTML, you can set placeholder line wrapping through CSS, but Mini Program does not seem to be able to do so. Is there anything you can do about it?

May.08,2021

can only be simulated with js, and


html textarea is also compatible according to the writing method given by the subject. It is best to use html and js to simulate placeholder, to write label and display none in html and Mini Program.
for off-the-shelf examples, please refer to QQ Mail's PC WEB login page.

Menu