最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

page-break-before Attribute | pageBreakBefore Property

Internet Development Index

Sets or retrieves a string indicating whether a page break occurs before the object.

Syntax

HTML { page-break-before : sBreak }
Scriptingobject.style.pageBreakBefore [ = sBreak ]

Possible Values

sBreakString that specifies or receives one of the following values.
alwaysAlways insert a page break before the object.
autoDefault. Neither force nor forbid a page break before 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 the value of this property and the pageBreakAfter property of 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-before attribute and the pageBreakBefore property to start printing on a new page.

This example uses the H3 element as a selector in an embedded style sheet to break the page before all H3 headings.

<STYLE>
H3 { page-break-before: always }
</STYLE>
</HEAD>
<BODY>
<H3>Start New Section on New Page</H3>
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 before the object that has an ID value of idParagraph. When the page is printed, a page break occurs before the first paragraph unless the user clicks the Turn Off Break button.

<SCRIPT>
function offBreak()
{
Paragraph.style.pageBreakBefore="";
}
</SCRIPT>
</HEAD>
<BODY>
<BUTTON onClick="offBreak()">Turn Off Break</BUTTON>
<P ID="Paragraph" STYLE="page-break-before:always">
:
</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.

Standards Information

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

Applies To

ADDRESS, BLOCKQUOTE, BODY, CAPTION, CENTER, currentStyle, DD, DIV, DL, DT, FIELDSET, FORM, hn, ISINDEX, LI, LISTING, MENU, OL, P, PLAINTEXT, PRE, runtimeStyle, style, TABLE, TBODY, TD, TFOOT, TH, THEAD, TR, UL, XMP
赤城县| 邯郸市| 筠连县| 大冶市| 马山县| 康平县| 庄浪县| 额尔古纳市| 巫溪县| 吉安市| 临江市| 六盘水市| 姚安县| 郓城县| 河津市| 平舆县| 冀州市| 林西县| 陈巴尔虎旗| 洛宁县| 西华县| 聊城市| 莱西市| 梅河口市| 宁波市| 扶绥县| 大悟县| 忻城县| 若尔盖县| 常德市| 凌源市| 甘德县| 紫云| 呼图壁县| 巧家县| 临泽县| 巴塘县| 普格县| 普兰店市| 斗六市| 江陵县|