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/_colon_right/index.html | 77 ++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 files/ja/web/css/_colon_right/index.html (limited to 'files/ja/web/css/_colon_right/index.html') diff --git a/files/ja/web/css/_colon_right/index.html b/files/ja/web/css/_colon_right/index.html new file mode 100644 index 0000000000..1b6b7e2505 --- /dev/null +++ b/files/ja/web/css/_colon_right/index.html @@ -0,0 +1,77 @@ +--- +title: ':right' +slug: 'Web/CSS/:right' +tags: + - '@page' + - CSS + - CSS ページ化メディア + - Layout + - Pseudo-class + - Reference + - Web + - ウェブ + - 疑似クラス +translation_of: 'Web/CSS/:right' +--- +
{{ CSSRef() }}
+ +

CSS:left 疑似クラスは {{cssxref("@page")}} @-規則 で使われ、印刷文書の右側のページすべてを表します。

+ +
/* 印刷時に右側のページを選択 */
+@page :right {
+  margin: 2in 3in;
+}
+ +

そのページが左側か右側かは、文書の主要な書字方向によって決まります。例えば、最初のページの主な書字方向が左から右であれば :right ページになります。書字方向が右から左であれば {{Cssxref(":left")}} ページになります。

+ +
+

メモ: この疑似クラスは、ページボックスの {{ Cssxref("margin") }}, {{ Cssxref("padding") }}, {{ Cssxref("border") }}, {{ Cssxref("background") }} の各プロパティのみを変更するために使用することができます。他のすべてのプロパティは無視され、ページ内の文書コンテンツではなく、ページボックスにのみ影響します。

+
+ +

構文

+ +
{{csssyntax}}
+ +

+ +
@page :right {
+  margin: 2in 3in;
+}
+
+ +

仕様書

+ + + + + + + + + + + + + + + + + + + + + +
仕様書策定状況コメント
{{ SpecName('CSS3 Paged Media', '#left-right-first', ':right') }}{{ Spec2('CSS3 Paged Media') }}変更なし。
{{ SpecName('CSS2.1', 'page.html#page-selectors', ':right') }}{{ Spec2('CSS2.1') }}初回定義。
+ +

ブラウザーの対応

+ + + +

{{Compat("css.selectors.right")}}

+ +

関連情報

+ + -- cgit v1.2.3-54-g00ecf