请问如何判断是否处于汉字输入状态?(内空)

muren home 数据库工程师/管理员  2001-09-02 05:17:59
...全文
31 点赞 收藏 2
写回复
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
孟子E章 2001-09-03
ime-mode Attribute | imeMode Property

--------------------------------------------------------------------------------

Sets or retrieves the state of an Input Method Editor (IME).

Syntax

HTML { ime-mode : sMode }
Scripting object.style.imeMode [ = sMode ]

Possible Values

sMode String that specifies or receives one of the following values:
auto :
Default. IME is not affected. This is the same as not specifying the ime-mode attribute.
active :
All characters are entered through the IME. Users can still deactivate the IME.
inactive :
All characters are entered without IME. Users can still activate the IME.
disabled :
IME is completely disabled. Users cannot activate the IME if the control has focus.

Example

This example uses the ime-mode attribute.

<INPUT TYPE = text STYLE = "ime-mode:active" >


回复
孟子E章 2001-09-03
javascript里不能判定!但可以应css打开或关闭中文输入法
回复
发动态
发帖子
JavaScript
创建于2007-09-28

8.4w+

社区成员

Web 开发 JavaScript
申请成为版主
社区公告
暂无公告