这个问题是小程序input组件的bug,目前的解决办法可以,在input标签上加一个其他标签,显示placeholder内容,获得焦点时消失,失去焦点时候再让其显示

<view class='input-box'>
      <input placeholder='' class='inputtext' maxlength='11' type="number" bindinput="bindKeyInput"  bindblur="blurinput"></input>
      <text  class='inputtext textcon' wx:if="{{showtext1}}">输入手机号</text>
    </view>

 

相关文章:

  • 2022-12-23
  • 2021-11-30
  • 2021-11-04
  • 2021-11-30
  • 2022-12-23
  • 2022-12-23
  • 2021-12-30
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-08-15
  • 2022-12-23
  • 2021-08-30
  • 2021-12-19
相关资源
相似解决方案