Как да подредя html документ за печат, така че страниците да не бъдат отрязани?

Имам HTML документ в iframe, който хората ще разпечатват, кодирал съм го да изглежда добре, когато се отпечата. Има долен колонтитул и горен колонтитул, горният колонтитул се променя за всяка страница и всяка страница е в рамките на собствен таг div. Искам хората да могат да натискат бутона за печат за документа и страниците, които всяка отпечатва на собствената си страница, без да бъдат отрязани и да се уверят, че долният колонтитул остава в долната част на всяка страница. Има ли начин това да стане? Ще се радвам на помощ с това, тъй като ме подлудява! Изглежда като глупост, когато една страница е твърде къса, така че следващата страница ще се отпечата на същата страница и след това ще бъде отрязана по средата.

Тук съм го настроил.. http://morecleanenergy.com/graphics/testproposal/index.html

Ето една от страниците..

<div style="size:210mm 297mm;">
    <table width="100%" border="0" cellpadding="0" cellspacing="0" class="Proposalheader">
        <tr>
            <td align="left" width="169"><img src="faq.png" height="57px"></td>
            <td width="732"></td>
        </tr></table>
    <div class="pageBody">
        <span class="generalText"><p><strong>Who is Clean Energy Collective?</strong></p>
            <p>Clean Energy Collective (CEC) is a Colorado-based company that develops, operates and maintains community-owned solar arrays, also referred to as solar gardens or community solar farms. CEC's innovative model makes local renew- able energy easy, accessible and a financially smart decision for electricity consumers in the United States.</p>
            <p><strong>What is CEC Community Solar?</strong></p>
            <p>Clean Energy Collective community solar enables you to own solar panels in a centralized, community-based array. As your panels produce clean electricity, you receive credits directly on your monthly electric bills for the power produced. By owning a solar power system in a community array, you can reduce or eliminate your electric bills, protect against rising prices, and experience monthly savings in place of a monthly expense.</p>
            <p><strong>What happens to the electricity produced by the panels?</strong></p>
            <p>The clean solar power is automatically delivered to the Xcel Energy's grid, increasing the utility's incorporation of renewable energy and decreasing its reliance on fossil fuels. The power is not delivered directly to your meter and no equipment is required to be installed on your property.</p>
            <p><strong>Do I need to own a home or building to participate?</strong></p>
            <p>No. If you have an electric bill, you can receive credits for the power produced by solar panels in a CEC communi- ty-owned solar array.</p>
            <p><strong>How can I monitor my panels' performance?</strong></p>
            <p>As a CEC customer, you can log on to your My Own Clean Energy account via the CEC website and smartphone app. There you can see your system's information, review your customer documents, and access real-time information about your portion of the array's production, bill credits, and positive environmental impact.</p>
            <p><strong>What happens if I move?</strong></p>
            <p>If you move within your county, simply have your panels' bill credits applied to your new location's meter and account with the utility. If you leave the county or the Xcel Energy territory, you may sell the panels to another Xcel Energy customer in your county or give a tax-deductible gift of clean energy by donating the system to a charity in your county.</p>
            <p><strong>How much solar can I buy?</strong></p>
            <p>Systems are available from a minimum of 1 kilowatt (kW) up to 120% of your average annual usage.</p>
            <p><strong>How are my monthly electric bill credits calculated?</strong></p>
            <p>Each month, your Xcel Energy electric bill will be credited for your panels' production. The power produced is credited at the specific rate for your customer class as determined under Xcel Energy's Solar*Rewards Community Program. These initial credit rates will increase as Xcel Energy's electricity rates increase, protecting you against the national trend of rising electricity costs.</p>
            <p><strong>How are my monthly electric bill credits calculated?</strong></p>
            <p>As Xcel Energy's electricity prices rise, the bill credit rate you receive for the panels' output will increase as well. As your monthly bill credits increase, your system's savings increase.</p></span>
    </div>
    <div><img src="footer.png" style="width:100%;"></div>
</div>

person IAMABANANA    schedule 06.11.2014    source източник


Отговори (1)


Опитайте да приложите свойството page-break-after css към вашия долен колонтитул. http://www.w3schools.com/cssref/pr_print_pageba.asp

person tctimmeh    schedule 06.11.2014
comment
Как да приложа това тогава? Бих ли добавил ‹div class=footer›, за да харесам края на всяка страница? - person IAMABANANA; 06.11.2014
comment
Изглежда, че вече имате div в края на всяка страница за показване на изображение в долния колонтитул. Добавянето на клас към него, както споменахте, и настройването на този клас като page-break-after: винаги трябва да ви даде ефекта, който искате. - person tctimmeh; 07.11.2014