diff options
author | Masahiro FUJIMOTO <mfujimot@gmail.com> | 2021-12-02 09:44:45 +0900 |
---|---|---|
committer | Masahiro FUJIMOTO <mfujimot@gmail.com> | 2021-12-12 10:54:12 +0900 |
commit | 97d320b1bb52ffd636dabd43eb2d150e3faee441 (patch) | |
tree | f88304f564e57341421f6ae3aff286461a289a99 /files/ja/web/css/orphans/index.md | |
parent | cb3bfab50275109a9176da39ad48a3040d6c0222 (diff) | |
download | translated-content-97d320b1bb52ffd636dabd43eb2d150e3faee441.tar.gz translated-content-97d320b1bb52ffd636dabd43eb2d150e3faee441.tar.bz2 translated-content-97d320b1bb52ffd636dabd43eb2d150e3faee441.zip |
CSS Fragment 関連のプロパティを更新準備
Diffstat (limited to 'files/ja/web/css/orphans/index.md')
-rw-r--r-- | files/ja/web/css/orphans/index.md | 113 |
1 files changed, 113 insertions, 0 deletions
diff --git a/files/ja/web/css/orphans/index.md b/files/ja/web/css/orphans/index.md new file mode 100644 index 0000000000..1621e1d75f --- /dev/null +++ b/files/ja/web/css/orphans/index.md @@ -0,0 +1,113 @@ +--- +title: orphans +slug: Web/CSS/orphans +tags: + - CSS + - CSS プロパティ + - CSS 断片化 + - Reference + - Web +translation_of: Web/CSS/orphans +--- +<div>{{CSSRef}}</div> + +<p><strong><code>orphans</code></strong> は <a href="/ja/docs/Web/CSS">CSS</a> のプロパティで、<a href="/ja/docs/Web/CSS/Paged_Media">ページ</a>、領域、<a href="/ja/docs/Web/CSS/CSS_Columns">段</a>の<em>最下部</em>に表示されるブロックコンテナーの最小行数を設定します。</p> + +<pre class="brush:css no-line-numbers">/* <integer> 値 */ +orphans: 2; +orphans: 3; + +/* Global values */ +orphans: inherit; +orphans: initial; +orphans: unset; +</pre> + +<div class="note"> +<p>組版において、 <em>orphan</em> とは段落の最初の行がページの末尾に単独で現れることです。 (段落は次のページへ続きます。)</p> +</div> + +<p>{{cssinfo}}</p> + +<h2 id="Syntax" name="Syntax">構文</h2> + +<h3 id="Values" name="Values">値</h3> + +<dl> + <dt>{{cssxref("<integer>")}}</dt> + <dd>区切りの前の新しい断片の末尾に残すことができる最小行数です。値は正の数である必要があります。</dd> +</dl> + +<h3 id="Formal_syntax" name="Formal_syntax">形式文法</h3> + +{{csssyntax}} + +<h2 id="Example" name="Example">例</h2> + +<h3 id="HTML">HTML</h3> + +<pre class="brush: html"><div> + <p>これは幾らかのテキストを含む最初の段落です。</p> + <p>これは最初の段落よりも多くのテキストを含む第二の段落です。これは widow がどの様に動作するのかを示すために用います。</p> + <p>これは第三の段落です。これは最初の段落よりも少しだけ長いテキストを含んでいます。</p> +</div> +</pre> + +<h3 id="CSS">CSS</h3> + +<pre class="brush: css; highlight[5]">div { + background-color: #8cffa0; + height: 150px; + columns: 3; + orphans: 3; +} + +p { + background-color: #8ca0ff; +} + +p:first-child { + margin-top: 0; +} +</pre> + +<h3 id="Result" name="Result">結果</h3> + +<p>{{EmbedLiveSample("Example", 380, 150)}}</p> + +<h2 id="Specifications" name="Specifications">仕様書</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 Fragmentation', '#widows-orphans', 'orphans')}}</td> + <td>{{Spec2('CSS3 Fragmentation')}}</td> + <td><code>orphans</code> をページ、領域、段など、断片の種類によらず適用するように拡張</td> + </tr> + <tr> + <td>{{SpecName('CSS2.1', 'page.html#break-inside', 'orphans')}}</td> + <td>{{Spec2('CSS2.1')}}</td> + <td>初回定義</td> + </tr> + </tbody> +</table> + +<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの対応</h2> + +<div> +<p>{{Compat("css.properties.orphans")}}</p> +</div> + +<h2 id="See_also" name="See_also">関連情報</h2> + +<ul> + <li>{{cssxref("widows")}}</li> + <li><a href="/ja/docs/Web/CSS/Paged_Media">ページ化メディア</a></li> +</ul> |