小程序input組件獲得焦點時placeholder內容有重影


這個問題是小程序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>

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM