<input type="text" style="ime-mode:disabled;">可以限制输入法起作用

解决方案 »

  1.   

    <input name="f" type="text" style="ime-mode:enabled" >  可用
    <input name="ff" type="text" style="ime-mode:disabled" >不可用
      

  2.   

    <input name="f" type="text" style="ime-mode:enabled" >  可用
    瞎掰~,根本没有这个属性(enabled),不过也是可以用的啦,本来默认就是可以使用的,只是这个属性不起作用属性如下:auto :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.