Home > Web Front-end > CSS Tutorial > The use and definition of CSS page-break-inside property

The use and definition of CSS page-break-inside property

黄舟
Release: 2017-07-08 10:50:37
Original
2206 people have browsed it

Syntax:

page-break-inside : auto | avoid
Copy after login

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 }
Copy after login

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 use and definition of CSS page-break-inside property

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!

Related labels:
css
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template