CSS孤児プロパティ
例
印刷するときは、各ページの下部に少なくとも4行、上部に2行を表示します。
@media print {
orphans: 4;
widows: 2;
}
定義と使用法
このorphans
プロパティは、ページまたは列の下部に残しておく必要のある最小行数を指定します。
ヒント:プロパティ も確認してください。
widows
ブラウザのサポート
表の数字は、プロパティを完全にサポートする最初のブラウザバージョンを示しています。
Property | |||||
---|---|---|---|---|---|
orphans | 25.0 | 8.0 | Not supported | 3.1 | 10.0 |
CSS構文
orphans: integer|initial|inherit;
プロパティ値
Value | Description |
---|---|
integer | Specifies the minimum number of lines that must be left at the bottom of a page or column. Negative values are not allowed |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |