Ime-mode attribute explanation

Source: Internet
Author: User

Sometimes the project needs to prohibit users from entering Chinese characters and symbols to reduce the possibility of incorrect input. css attributes have this function.

The ime-mode syntax is as follows:

Ime-mode: auto | active | inactive | disabled

Valid value:

Auto: default value. The IME (Input Method Editors Input Method Editor) 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.

Therefore

The global style is defined as follows:

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

The page-level definition is as follows:

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

Direct reference in ASP. NET

<Asp: TextBox ID = "txtRuling_No" runat = "server" Width = "80px" MaxLength = "8" CssClass = "txt" style = "ime-mode: disabled "> </asp: TextBox>

 

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.