Visit Mozilla.org

CSS:ime-mode

出典: MDC

« CSS リファレンス

この記事は Firefox 3 の新機能について述べています


[編集] Summary

ime-mode プロパティはテキストフィールドで input method editor(以下 IME) をコントロールします。

[編集] Syntax

ime-mode: <mode>

[編集] Values

auto 
No change is made to the current input method editor state.これはデフォルトの設定です。
normal 
The IME state should be normal; this value can be used in a user style sheet to override the page setting. この値は Internet Explorer ではサポートされていません。
active 
コンテンツの読み込み時に IME は有効に設定されます; ユーザーが無効にしない限りテキスト入力には IME が使用されます。 Linux ではサポートされていません。
inactive 
コンテンツが読み込まれた時は IME は無効に設定されますが、ユーザーは任意で IME を有効にする事ができます。 Linux ではサポートされていません。
disabled 
IME は無効にされます。ユーザーによって IME を有効にする事はできません。

[編集] Examples

<input type="text" name="name" value="initial value" style="ime-mode: disabled">

This example disables input method support for a field; this might be necessary for fields that enter data into a database that doesn't support extended character sets, for example.

[編集] Notes

Firefox の ime-mode は Internet Explorer と異なり、パスワードフィールドにも適用できます。しかしこれはユーザーの使い勝手にはマイナスの影響を与えます。パスワードフィールドでは IME は無効に設定されているべきです。ユーザーは以下の CSS を userCSS ファイルに挿入する事で推奨された設定に従わないサイトへ修正を行う事ができます:

input[type=password] {
	ime-mode: auto !important;
}
註: In general, it's not appropriate for a public web site to manipulate the IME mode setting. This property should be used for web applications and the like.

The Macintosh version of Gecko 1.9 can't recover the previous state of the IME when a field for which it is disabled loses focus, so Mac users may get grumpy when you use the disabled value.

註: Don't rely on disabling IME to prevent extended characters from passing through your form. Even with IME disabled, users can still paste extended characters into your form's fields.

[編集] Specifications

[編集] Browser Compatibility

ime-mode プロパティは Internet Explorer と Firefox 3 以降でサポートされます。zh-tw:CSS:ime-mode