IME-mode: Disabled disables text box input for forms

Source: Internet
Author: User

Recently, a mobile phone project was launched. In the user input number form, users must be prohibited from entering Chinese characters and symbols to reduce the possibility of incorrect input. Later, they checked the information online, CSS attributes have such functions.


The IME-mode syntax is as follows:

IME-mode: auto | active | inactive | disabled

Valid value:

Auto: default value. The IME status is not affected. Same as when the ime-mode attribute is not specified

Active: Specify all characters entered using ime. Activate the local language input method. You can still cancel IME activation.

Inactive: specifies all characters that do not use ime. Activate a non-local language. You can still cancel IME activation.

Disabled: Completely disable ime. For controls with focus (such as input boxes), you cannot activate ime.


The global style is defined as follows:

. Ime-disabled {ime-mode: Disabled;}/* shielded Input Method */

The mobile phone recharge page is defined as follows:

<Input type = "text" name = "mobile" class = "ime-Disabled">



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: 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.