当前位置: 首页 > 网络学院 > 网页制作基础教程 > CSS > CSS page-break-before属性
The page-break-before property sets the page-breaking behavior before an element.
设置在元素前出现的页分割符。
Note: You can not use this property on absolutely positioned elements.
注意:不可以在绝对定位元素上使用这个属性
Note: Use the page-breaking properties as few times as possible and avoid page-breaking properties inside tables, floating elements, and block elements with borders.
注意:尽可能少用page-breaking属性,在表格, 浮动元素, 以及带边框的块级元素上则避免使用。
Inherited: No
继承性:无
table |
值 | 描述 |
---|---|
auto | Insert a page break before the element if necessary 假如需要在对象之前插入页分割符 |
always | Insert a page break before the element 始终在对象之前插入页分割符 |
avoid | Avoid inserting a page break before the element 避免在对象之前插入页分割符 |
left | Insert page breaks before the element until it reaches a blank left page 在对象之前插入页分割符直到它到达一个空白的左页边 |
right | Insert page breaks before the element until it reaches a blank right page 在对象之前插入页分割符直到它到达一个空白的右页边 |