The use and definition of CSS @page

Source: Internet
Author: User
Grammar:

Page:auto | PageType

Parameters:

Auto: Reference the current default page
PageType: Specifies a page type (pagetype) definition in the @page rule

Description

Retrieves or specifies the page type (pagetype) to use when displaying the object container. See @page rules.
The corresponding script attribute is page. Please refer to the other bibliography I have written.

Example:

@page doublepage {size:8.5in 11in; Page-break-after:left}body {page:doublepage; Page-break-after:right}

Sets the layout, orientation, edge space, etc. of the page container.
The page container includes the Benis filler area of the page content area and the periphery of the content area.

Example:

@page Thin:first {size:3in 8in}

Detailed results you can try it out in Dreamweaver.

@page The Rule Selection page box. Within it, the designer can specify the size, layout, orientation, and margins of each page. The page box is a rectangular area, approximately the size of the printed page, which contains the page area and margins. The page area includes the content to be displayed, the edge of the box as a container, and the page layout in between page breaks. Unlike other boxes, the page box has no boundary or welt, only the margins.
@page rules Select each page in the document. You can use one of the following page pseudo-class properties: First,: Left, or: Right to specify different properties for each page class.
Because the @page rule does not know the content of the page containing the font, it is not possible to understand the size in EM and ex units. All other units of measure, including percentages, are acceptable. The percentage to set the margins is also the percentage of the total page box. Margins can be negative, which means placing content outside of the area that is typically accessible to the application or printer. In most cases, only the information within the visible or printable area is preserved.

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.