导出word功能,用html代码在word中插入分页符

<span lang=EN-US style="font-size:10.5pt;mso-bidi-font-size:12.0pt;font-family:" mce_style="font-size:10.5pt;mso-bidi-font-size:12.0pt;font-family:"Times New Roman';mso-fareast-font-family:宋体;mso-font-kerning:1.0pt;mso-ansi-language EN-US;mso-fareast-language:ZH-CN;mso-bidi-language:AR-SA'><br clear=all style="page-break-before:always" mce_style="page-break-before:always"></span> 

最关键的是这段代码,它就是分页符:<br clear=all style="page-break-before:always" mce_style="page-break-before:always"> 
经常导出word功能,想在jsp、html中控制word的页数、在指定的位置进行分页可以通过这段代码进行分页。

  

posted @ 2018-12-07 14:41  一万年以前  阅读(2531)  评论(1编辑  收藏  举报