推薦個不錯的表單Input的進階用法11例_經驗交流

來源:互聯網
上載者:User
1.取消按鈕按下時的虛線框
  在input裡添加屬性值 hideFocus 或者 HideFocus=true

2.唯讀文字框內容
在input裡添加屬性值 readonly

3.防止退後清空的TEXT文檔(可把style內容做做為類引用)
  

4.ENTER鍵可以讓游標移到下一個輸入框
  

5.只能為中文(有閃動)
  

6.只能為數字(有閃動)
  

7.只能為數字(無閃動)
  

8.只能輸入英文和數字(有閃動)
  

9.屏蔽IME
  

10. 只能輸入 數字,小數點,減號(-) 字元(無閃動)
  

11. 只能輸入兩位小數,三位小數(有閃動)
  
  • 相關文章

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.