Grammar:
Ime-mode:auto | active | Inactive | Disabled
Parameters:
Auto: Does not affect the status of the IME. Same as do not specify Ime-mode property
Active: Specifies all characters that are entered using the IME. The local language input method is activated. Users can still revoke the activation IME
Inactive: Specifies all characters that do not use IME input. The non-native language is activated. Users can still revoke the activation IME
Disabled: Disables the IME entirely. The user cannot activate the IME for a control that has focus (such as an input box)
Description
Sets or retrieves whether the user is allowed to activate Input Method (IME) status in Chinese, Korean, Japanese, and so on.
The corresponding script attribute is IMEMode. Please refer to the other bibliography I have written.
Example:
<input type=text style= "Ime-mode:auto; ">
So
In the global style, define the following:
. ime-disabled{ime-mode:disabled;} /* Shielded Input Method */
The page level is defined as follows:
<input type= "text" name= "mobile" class= "ime-disabled" >
Asp. NET in direct reference
<asp:textbox id= "Txtruling_no" runat= "Server" width= "80px" maxlength= "8" cssclass= "TXT" style= "ime-mode:disabled" ></asp:TextBox>
That's it. So when a text field does not require Chinese input, we can reduce the likelihood of errors by setting the Ime-mode property value to inactive or disabled. Similarly, we can set the Ime-mode property value of the text field that requires Chinese input to active.
Usually the business system of C/s, will pay attention to input method control problems. Development based on B/S business system, will also encounter the same problem, Ime-mode believe can help. However, FireFox does not support this style sheet property.
Example:
input {Ime-mode:auto;} <form name= "Form1" method= "Post" action= "" > <input type= "text" name= "TextField" style= "Ime-mode: Disabled "></form>