程序中您将可以看到这些属性的设定,
<HTML>
<HEAD>
<TITLE>Listing 14-4</TITLE>
</HEAD>
<BODY>
<DIV>This is the first DIV.</DIV>
<DIV STYLE="page-break-before:always">This is the second DIV.</DIV>
<DIV STYLE="page-break-after:always">This is the third DIV.</DIV>
<DIV>This is the fourth DIV.</DIV>
<DIV STYLE="page-break-before:right">This is the fifth DIV.</DIV>
<DIV STYLE="page-break-after:right">This is the sixth DIV.</DIV>
<DIV>This is the last DIV.</DIV>
</BODY>
</HTML>
设置页面容器的版式,方向,边空等。页面容器包括页面内容区域和内容区域外围的边空补白区域。
示例:
@page thin:first { size: 3in 8in }
详细效果你可以在Dreamweaver里尝试一下。