HTML CSS Reference/CSS Attributes and Javascript Style Properties/page break before

Материал из Web эксперт
Перейти к: навигация, поиск

"page-break-before" Example

   <source lang="html4strict">
   

<html> <body>

    When printing, there will be a page-break before this object.

</body> </html>


     </source>
   
  


"page-break-before" is applied to

   <source lang="html4strict">

+----------------+--------------------------------------------------------------+

| Applied_To |
<body> |

| |<button> |

| |
currentStyle |

| |

<dir> |

| |
|

| |

<fieldset> | | |<form> <hn> |

| |<isindex>
  • | | |<listing> <marquee> | | |<menu>
      | | |

                               |
      |                |runtimeStyle                    style                         |
      |                |                         <tbody>                       |
      |                |<tfoot>                                                   |
      |                |
        <xmp> | +----------------+--------------------------------------------------------------+ </source>

        "page-break-before" Possible Values

        <source lang="html4strict"> Possible Values always always inserted after/before the element. auto forced or avoided before/after/inside the element. avoid avoided before/after/inside the element. "" A page break is not inserted.(empty string)

        </source>



        "page-break-before" Syntax and Note

        <source lang="html4strict"> Note: Add a page break before the element. Page breaks are not permitted inside positioned objects. Syntax:

        element { page-break-before: value } elementID.style.pageBreakBefore = "value" document.all.elementID.style.pageBreakInside = "value" // IE only


        </source>
      | | |<thead>