CSS Ime-mode properties using the specific explanation

Source: Internet
Author: User
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>
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.