HTML/CSS/CSS Attributes and Javascript Style Properties/page break before — различия между версиями

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

Текущая версия на 08:16, 26 мая 2010

page break before: always

 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
    <head>
        <title></title>
        <style type="text/css">
            p {
                page-break-before: always;
            }
        </style>
    </head>
    <body>
        This text appears on the first printed page.
        <p>
            This text appears at the start of the second printed page.
        </p>
        <p>
            This text appears at the start of the third printed page.
        </p>
    </body>
</html>



"page-break-before" Example

    
<html>
<body>
<div style="page-break-before:"always"; 
            background-color:#EEEEEE; 
            width:400; 
            height:70">
     When printing, there will be a page-break before this object.
</div>
</body>
</html>