aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/css/_colon_right/index.html
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
commit33058f2b292b3a581333bdfb21b8f671898c5060 (patch)
tree51c3e392513ec574331b2d3f85c394445ea803c6 /files/ja/web/css/_colon_right/index.html
parent8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff)
downloadtranslated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip
initial commit
Diffstat (limited to 'files/ja/web/css/_colon_right/index.html')
-rw-r--r--files/ja/web/css/_colon_right/index.html77
1 files changed, 77 insertions, 0 deletions
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'
+---
+<div>{{ CSSRef() }}</div>
+
+<p><a href="/ja/docs/Web/CSS">CSS</a> の <strong><code>:left</code></strong> <a href="/ja/docs/CSS/Pseudo-classes">疑似クラス</a>は {{cssxref("@page")}} <a href="/ja/docs/Web/CSS/At-rule">@-規則</a> で使われ、印刷文書の右側のページすべてを表します。</p>
+
+<pre class="brush: css no-line-numbers">/* 印刷時に右側のページを選択 */
+@page :right {
+ margin: 2in 3in;
+}</pre>
+
+<p>そのページが左側か右側かは、文書の主要な書字方向によって決まります。例えば、最初のページの主な書字方向が左から右であれば <code>:right</code> ページになります。書字方向が右から左であれば {{Cssxref(":left")}} ページになります。</p>
+
+<div class="note">
+<p><strong>メモ:</strong> この疑似クラスは、<em>ページボックス</em>の {{ Cssxref("margin") }}, {{ Cssxref("padding") }}, {{ Cssxref("border") }}, {{ Cssxref("background") }} の各プロパティのみを変更するために使用することができます。他のすべてのプロパティは無視され、ページ内の文書コンテンツではなく、ページボックスにのみ影響します。</p>
+</div>
+
+<h2 id="Syntax" name="Syntax">構文</h2>
+
+<pre class="syntaxbox">{{csssyntax}}</pre>
+
+<h2 id="Example" name="Example">例</h2>
+
+<pre class="brush: css">@page :right {
+ margin: 2in 3in;
+}
+</pre>
+
+<h2 id="Specifications" name="Specifications"><span>仕様書</span></h2>
+
+<table class="standard-table">
+ <thead>
+ <tr>
+ <th scope="col">仕様書</th>
+ <th scope="col">策定状況</th>
+ <th scope="col">コメント</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>{{ SpecName('CSS3 Paged Media', '#left-right-first', ':right') }}</td>
+ <td>{{ Spec2('CSS3 Paged Media') }}</td>
+ <td>変更なし。</td>
+ </tr>
+ <tr>
+ <td>{{ SpecName('CSS2.1', 'page.html#page-selectors', ':right') }}</td>
+ <td>{{ Spec2('CSS2.1') }}</td>
+ <td>初回定義。</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの対応</h2>
+
+<p class="hidden">このページの互換性一覧表は構造化データから生成されています。データに協力したいのであれば、 <a href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> をチェックアウトしてプルリクエストを送信してください。</p>
+
+<p>{{Compat("css.selectors.right")}}</p>
+
+<h2 id="See_also" name="See_also">関連情報</h2>
+
+<ul>
+ <li>{{ Cssxref("@page") }}</li>
+ <li>ページに関する他の疑似クラス: {{ Cssxref(":first") }}, {{ Cssxref(":left") }}</li>
+</ul>