您的位置:首页 > Web前端 > JavaScript

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

2014-05-30 14:18 405 查看
要用到的东西: 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' " />
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: