CSS未亡人プロパティ
例
印刷するときは、各ページの下部に少なくとも4行、上部に2行を表示します。
@media print {
orphans: 4;
widows: 2;
}
定義と使用法
このwidows
プロパティは、ページまたは列の上部に残しておく必要のある最小行数を指定します。
ヒント:プロパティも確認してください。
orphans
ブラウザのサポート
表の数字は、プロパティを完全にサポートする最初のブラウザバージョンを示しています。
Property | |||||
---|---|---|---|---|---|
widows | 25.0 | 8.0 | Not supported | 7.0 | 10.0 |
CSS構文
widows: integer|initial|inherit;
プロパティ値
Value | Description |
---|---|
integer | Specifies the minimum number of lines that must be left at the top 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 |