<INPUT TYPE = text STYLE = "ime-mode:disabled" > 即可禁止输入法 js形式:
active 代表输入法为中文
inactive 代表输入法为英文
auto 代表打开输入法 (默认)
disable 代表关闭输入法
<INPUT οnfοcus=" this.style.imeMode='active' " />
<INPUT οnfοcus=" this.style.imeMode='inactive' " />
<INPUT οnfοcus=" this.style.imeMode='auto' " />
<INPUT οnfοcus=" this.style.imeMode='disabled' " />
禁止input 粘贴:
<inputid=VCclass="xinput"maxlength=4size="5"onkeydown="fnKeyDown(event);"onfocus="this.select()"onclick="this.select()"onpaste="returnfalse"ondrop="returnfalse"ondragenter="returnfalse;"ondragstart="returnfalse"onkeypress="returnkeyDigt(event)"value=""/>
οndragstart="return false" 禁止鼠标在网页上拖动
ondragenter 当用户拖曳对象到一个合法拖曳目标时在目标元素上触发
οnpaste="return false" 禁止粘贴