Home > Article > Web Front-end > The use and definition of CSS page-break-inside property
Syntax:
page-break-inside : auto | avoid
Parameters:
auto: If you need to insert page breakers in the object container
avoid: Disable the insertion of page breakers in the current object container
Description:
Retrieve or set the page separator that appears in the object container.
Currently IE5.5 does not support this attribute.
The corresponding script feature is pageBreakInside. Please see other books I have written.
Example:
p { page-break-inside: auto }
The page-break-inside attribute in CSS is used to set the paging behavior inside the element.
page-break-inside attribute example
page-break-inside definition and usage
The page-break-inside attribute sets the page-breaking behavior inside the element.
Although you can use always to force page breaks, there is no guarantee that the insertion of page breaks will be avoided. The most the creator can do is ask the user agent to avoid inserting page breaks as much as possible.
Applies to: position Non-floating block-level elements with a value of relative or static.
Note: Please use the paging attribute as little as possible, and avoid using the paging attribute in tables, floating elements, and block elements with borders.
The above is the detailed content of The use and definition of CSS page-break-inside property. For more information, please follow other related articles on the PHP Chinese website!