在使用textarea的时候之前都好好的,一段时间没有开发小程序,再次运行时textarea中文字出现的重影。我的代码如下

<textarea class='textareaStyle.textarea-exp' placeholder='请输入要举报的内容' name='message' bindinput="questionInput" placeholder-style='color:#d7d7d7' maxlength="{{maxInput}}" auto-height="{{true}}" >{{problemDescription}}</textarea>

出现重影的效果图如下所示:

解决微信小程序textarea出现重影

解决的办法是:将要展示的内容放入value中,代码如下所示:

<textarea class='input' placeholder='{{placeholderText}}' bindinput="patrolNoteInput" placeholder-style='color:#d7d7d7' maxlength="200" disabled='{{isSignIn}}' value="{{patrolNoteText}}"></textarea>

解决后就恢复正常了:

解决微信小程序textarea出现重影

 

相关文章:

  • 2021-06-27
  • 2021-06-21
  • 2022-12-23
  • 2022-01-01
  • 2022-01-02
  • 2021-11-10
  • 2021-09-11
猜你喜欢
  • 2021-04-23
  • 2021-11-12
  • 2021-06-27
  • 2021-11-13
  • 2022-12-23
  • 2021-11-20
  • 2021-09-08
相关资源
相似解决方案