1.取消按钮按下时的虚线框 
INPUT的一些使用技巧  在input里添加属性值  hideFocus 或者 HideFocus=true 
INPUT的一些使用技巧  
INPUT的一些使用技巧2.只读文本框内容 
INPUT的一些使用技巧        在input里添加属性值  readonly 
INPUT的一些使用技巧  
INPUT的一些使用技巧3.防止退后清空的TEXT文档(可把style内容做做为类引用) 
INPUT的一些使用技巧  
<INPUT style=behavior:url(#default#savehistory); type=text id=oPersistInput> 
INPUT的一些使用技巧  
INPUT的一些使用技巧4.ENTER键可以让光标移到下一个输入框 
INPUT的一些使用技巧  
<input onkeydown="if(event.keyCode==13)event.keyCode=9" > 
INPUT的一些使用技巧  
INPUT的一些使用技巧5.只能为中文(有闪动) 
INPUT的一些使用技巧  
<input onkeyup="value=value.replace(/[ -~]/g,'')" onkeydown="if(event.keyCode==13)event.keyCode=9"> 
INPUT的一些使用技巧  
INPUT的一些使用技巧6.只能为数字(有闪动) 
INPUT的一些使用技巧  
<input onkeyup="value=value.replace(/[^\d]/g,'') "onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"> 
INPUT的一些使用技巧  
INPUT的一些使用技巧7.只能为数字(无闪动) 
INPUT的一些使用技巧  
<input style="ime-mode:disabled" onkeydown="if(event.keyCode==13)event.keyCode=9" onKeyPress="if ((event.keyCode<48 || event.keyCode>57)) event.returnValue=false"> 
INPUT的一些使用技巧  
INPUT的一些使用技巧8.只能输入英文和数字(有闪动) 
INPUT的一些使用技巧  
<input onkeyup="value=value.replace(/[\W]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"> 
INPUT的一些使用技巧  
INPUT的一些使用技巧9.屏蔽输入法 
INPUT的一些使用技巧  
<input type="text" name="url" style="ime-mode:disabled" onkeydown="if(event.keyCode==13)event.keyCode=9"> 
INPUT的一些使用技巧  
INPUT的一些使用技巧10. 只能输入 数字,小数点,减号(-) 字符(无闪动) 
INPUT的一些使用技巧  
<input onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"> 
INPUT的一些使用技巧  
INPUT的一些使用技巧11. 只能输入两位小数,三位小数(有闪动) 
INPUT的一些使用技巧  
<input maxlength=9 onkeyup="if(value.match(/^\d{3}$/))value=value.replace(value,parseInt(value/10)) ;value=value.replace(/\.\d*\./g,'.')" onKeyPress="if((event.keyCode<48 || event.keyCode>57) && event.keyCode!=46 && event.keyCode!=45 || value.match(/^\d{3}$/) || /\.\d{3}$/.test(value)) {event.returnValue=false}" id=text_kfxe name=text_kfxe>

相关文章:

  • 2021-11-07
  • 2022-01-04
  • 2021-12-18
  • 2021-06-13
  • 2022-02-21
  • 2021-12-30
  • 2022-02-15
  • 2021-10-18
猜你喜欢
  • 2021-07-19
  • 2021-12-04
  • 2021-06-22
  • 2021-11-15
  • 2021-09-22
  • 2021-06-15
相关资源
相似解决方案