HBCMS更多的中文手册参考:

page-break-after Attribute | pageBreakAfter参数属性

DHTML文档教程

Sets or retrieves a value indicating whether a page break occurs after the object.

dhtml语法

HTML { page-break-after : sBreak }
Scriptingobject.style.pageBreakAfter [ = sBreak ]

DHTML可能的值

sBreakString that specifies or receives one of the following values.
alwaysAlways insert a page break after the object.
autoDefault. Neither force nor forbid a page break after the object.
empty stringDo not insert a page break.
leftCurrently works the same as always.
rightCurrently works the same as always.

The property is read/write for all objects except the following, for which it is read-only: currentStyle. The property has a default value of auto. The Cascading Style Sheets (CSS) attribute is not inherited.

Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see about dynamic properties.

remarks

this property applies when printing the document. this property does not apply to the br or hr elements.

if there are conflicts between this property and the pagebreakbefore value on the object previously displayed in the browser, the value that results in the largest number of page breaks is used.

page breaks are not permitted inside positioned objects.

Examples

The following examples use the page-break-after attribute and the pageBreakAfter property to start printing on a new page.

This example uses the p element as a selector in an embedded style sheet to break the page at the end of all paragraphs.

<STYLE>
P { page-break-after: always }
</STYLE>
</HEAD>
<BODY>
<P>
:
</P>
This feature requires Microsoft® Internet Explorer 4.0 or later. Click the following icon to install the latest version. Then reload this page to view the sample.

This example uses a call to a function to turn off the page break after the object that has an id value of idparagraph.

<SCRIPT>
function offBreak()
{
idParagraph.style.pageBreakAfter="";
}
</SCRIPT>
</HEAD>
<BODY>
<BUTTON onClick="offBreak()">Turn Off Break</BUTTON>
This feature requires Microsoft® Internet Explorer 4.0 or later. Click the following icon to install the latest version. Then reload this page to view the sample.

是否符合公共标准

This property is defined in Cascading Style Sheets (CSS), Level 2 (CSS2) Non-Microsoft link.

Applies To

BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, currentStyle, DD, DIR, DIV, DL, DT, FIELDSET, FORM, hn, ISINDEX, LI, LISTING, MARQUEE, MENU, OL, P, PLAINTEXT, PRE, runtimeStyle, style, TABLE, TBODY, TFOOT, TH, THEAD, TR, UL, XMP