1. 程式人生 > >分頁列印

分頁列印

<HTML>
  <HEAD>
    <TITLE>Listing 14-4</TITLE>
  </HEAD>
  <BODY>
    <DIV>This is the 1 DIV.</DIV>
    <DIV STYLE="page-break-before:always">This is the 2 DIV.</DIV>
    <DIV STYLE="page-break-before:always">This is the 3 DIV.</DIV>
      <button onclick="window.print()">列印</button>
  </BODY>
</HTML>