Represents a @page at-rule.
Although the page object is supported, but the @page at-rule does not work in Internet Explorer before version 8.If you want to add a new @page rule to a style sheet, use the addPageRule method in Internet Explorer.
In Firefox, Opera, Google Chrome, Safari and Internet Explorer from version 9, use the CSSPageRule object instead.
The base interface, through which you can add new functionalities to the page object, is the StyleSheetPage interface.
|Returns the name of the pseudo class associated with the @page at-rule.|
|Returns the selector component of a @page rule as a string.|
Example HTML code 1:
This example shows how to get a @page at-rule in different browsers:
Did you find this example helpful?
User Contributed Comments