page-break-before:自动 [英] page-break-before : auto

查看:81
本文介绍了page-break-before:自动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果有两个表,我希望根据表2中的可用数据自动插入分页符.

If there are two tables, i wanted a page break to get inserted automatically based on the datas available in table 2.

推荐答案

您可以设置分页符JavaScript的window.onload上的CSS.
You can set the page break css on window.onload of javascript.
if(table2.style.offsetHeight > myPageHeight)
    table2.style.pageBreakBefore="always";


希望这会有所帮助.


Hope this will help.


这篇关于page-break-before:自动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆