1.动态分页打印
.pageNext {
page-break-after: always;
}
将需要分页的地方加入 下面 代码即可
<p class="pageNext" />
注:页面必须不能是绝对定位的布局,否在不能分页。
2.页眉页脚属性含义:
&w 网页标题
&u 网页地址 (URL)
&d 短日期格式(由“控制面板”中的“区域设置”指定)
&D 长日期格式(由“控制面板”中的“区域设置”指定)
&t 由“控制面板”中的“区域设置”指定的时间格式
&T 24 小时时间格式
&p 当前页码
&P 总页数
&b 文本右对齐(请把要右对齐的文字放在“&b”之后)
&b&b 文字居中(请把要居中的文字放在“&b”和“&b” 之间)
&& 单个 & 号 (&)
var hkey_root,hkey_path,hkey_key;
hkey_root="HKEY_CURRENT_USER";
hkey_path="\\Software\\Microsoft\\Internet Explorer\\PageSetup\\";
var RegWsh = new ActiveXObject("WScript.Shell");
hkey_key="header";
RegWsh.RegWrite(hkey_root + hkey_path + hkey_key,"");
hkey_key="footer";
RegWsh.RegWrite(hkey_root + hkey_path + hkey_key,"&b第&p页/共&P页&b");
评论