首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > JavaScript >

js实现焦点进来文本框内关闭输入法

2013-09-11 
js实现焦点进入文本框内关闭输入法要用到的东西: imeMode:xxx有四个参数active 代表输入法为中文inactive

js实现焦点进入文本框内关闭输入法

要用到的东西: imeMode:xxx

有四个参数

active 代表输入法为中文
inactive 代表输入法为英文
auto 代表打开输入法 (默认)
disable 代表关闭输入法

<INPUT onfocus=" this.style.imeMode='active' " />

<INPUT onfocus=" this.style.imeMode='inactive' " />

<INPUT onfocus=" this.style.imeMode='auto' " />

<INPUT onfocus=" this.style.imeMode='disabled' " /> 这个应该算最常用的了,其他可以不记

新建文件

可选的描述
添加其它文件 (最大尺寸: 20 MB)

取消

热点排行