CSS control reference that can print pagination when printing

Source: Internet
Author: User
Tags insert reference
css| Reference | print | pagination | control


PageBreak: Forces the page to be changed before and after the style control when printing.

Before: The page break that appears before the object is set. When set to always, the page delimiter is always inserted before the object. The corresponding CSS property is "Page-break-before".

After: The page delimiter that appears after the object is set. When set to always, the page delimiter is always inserted after the object. The corresponding CSS property is "' >.

With Page-break-after
Page-break-after version: CSS2 Compatibility: ie4+ inheritance: None
Grammar:
Page-break-after:auto | Always | Avoid | Left | Right | Null
Take value:
Auto:  If you need to insert a page break after the object
Always:  always inserts a page break after the object
Avoid:  not supported. Avoid inserting a page break after an object
Left:  not supported. Insert a page break after the object until it reaches a blank left margin
Right:  not supported. Insert a page break after the object until it reaches a blank right margin
Null:  a blank string. Remove Page break settings

Description
Retrieves or sets the page delimiter that appears after the object.
This property is useful when printing a document. This property is not used for BR or HR objects.
If a conflict occurs between the value of this property and the Page-break-before property on an object that is already displayed by the browser, the maximum number of paged values is used.
Page delimiters are not allowed to appear inside the anchored object.
In IE6 and previous versions of browsers, the left and right values are equivalent to always.
This property is read-only for Currentstyle objects. is writable for other objects.
The corresponding script attribute is pagebreakafter.
Example:
p {page-break-after:always;}




Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.