From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/ja/web/css/-ms-accelerator/index.html | 76 +++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 files/ja/web/css/-ms-accelerator/index.html (limited to 'files/ja/web/css/-ms-accelerator/index.html') diff --git a/files/ja/web/css/-ms-accelerator/index.html b/files/ja/web/css/-ms-accelerator/index.html new file mode 100644 index 0000000000..a057272e2e --- /dev/null +++ b/files/ja/web/css/-ms-accelerator/index.html @@ -0,0 +1,76 @@ +--- +title: '-ms-accelerator' +slug: Web/CSS/-ms-accelerator +tags: + - CSS + - CSS プロパティ + - Microsoft 拡張 + - Non-standard + - リファレンス +translation_of: Archive/Web/CSS/-ms-accelerator +--- +
{{CSSRef}}
+ +
{{non-standard_header}}
+ +

CSS-ms-accelerator プロパティは、オブジェクトがキーボードショートカットを表しているかどうかを示す文字列を設定したり受け取ったりする Microsoft 拡張です。

+ +

{{cssinfo}}

+ +

構文

+ +
/* オブジェクトはキーボードショートカットではない (既定値) */
+-ms-accelerator: false
+/* オブジェクトはキーボードショートカットである */
+-ms-accelerator: true
+
+ +

+ +
+
false
+
+

オブジェクトはキーボードショートカットではありません。

+
+
true
+
+

オブジェクトはキーボードショートカットです。

+
+
+ +

形式文法

+ +
{{csssyntax}}
+ +

+ +

この例は {{HTMLElement("u")}} 要素で -ms-accelerator 属性を使用して、 {{HTMLElement("label")}} 要素内の "N" がキーボードショートカットであると指定しています。ユーザーの画面のプロパティでオプション「Alt キーを押すまでキーボードショートカットを隠す」が有効になっていると、 "N" はユーザーが Alt キーを押すまで下線が引かれません。 Alt + N が押されると、 {{htmlattrxref("accessKey","input")}} 属性の値を "N" に定義した {{HTMLElement("input")}} 要素がフォーカスを受け取ります。

+ +
<!DOCTYPE html>
+
+<html>
+  <head>
+    <title>Accelerator</title>
+  </head>
+  <body>
+    <label for="oName"><u style="-ms-accelerator: true; accelerator: true">N</u>ame: </label>
+    <input type="text"
+      id="oName"
+      size="25"
+      accesskey="N"
+      value="Your name here" />
+  </body>
+</html>
+
+ +

仕様書

+ +

どの仕様書でも定義されていません。

+ +

注釈

+ +

このプロパティは Windows 2000 以降で対応しています。ユーザーがメニュー項目やコントロールのナビゲーションのインジケーターを Alt キーが押されるまで隠すことができます。

+ +

アクセスキーは、オブジェクトを選択するためのキーボードショートカットとして使われる単一の文字です。ユーザーは Alt キーを押し、押しながらオブジェクトへ入力フォーカスを移動する文字を押すと、オブジェクトに関連付けられた既定のイベントを呼び出します。

+ +

Internet Explorer 8 (IE8) では、 -ms-accelerator 属性は CSS の拡張機能であり、 IE8 標準モードで accelerator の別名として使用することができます。

-- cgit v1.2.3-54-g00ecf