When printing, display at least 4 lines at the bottom and 2 lines at the top of each page:
@media print {
orphans: 4;
widows: 2;
}
The orphans
property specifies the minimum number of lines that must be left at the bottom of a page or column.
Tip: Also look at the widows
property.
Default value: | 2 |
---|---|
Inherited: | yes |
Animatable: | no. Read about animatable |
Version: | CSS3 |
JavaScript syntax: | object.style.orphans = "3" |
The numbers in the table specify the first browser version that fully supports the property.
Property | |||||
---|---|---|---|---|---|
orphans | 25.0 | 8.0 | Not supported | 3.1 | 10.0 |
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 |
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!