HTML 打印
小雨飞
这个作者很懒,什么都没留下…
展开
-
html 打印指定区域并去掉页眉、页脚,设置打印布局(纵向、横向)
<style type="text/css"> table{ font-size:18px; border-collapse:collapse; text-align: center; margin: 0 auto; } .al{ /* table宽、...原创 2018-06-14 14:32:55 · 10145 阅读 · 0 评论 -
打印内容与页面相差较大时,指定打印页面
================html=====================================css====================== <!-- 打印的样式--> <style media="print"> @page { /* 纵向: */ size: portrait; size: auto;...原创 2018-08-21 15:31:18 · 286 阅读 · 0 评论 -
打印内容与页面相差较大时,使用js编写html
===============控制层=============== //打印 @RequestMapping("Print") @ResponseBody public ov print(Integer id) { ov o=ovService.getId(id); //返回实体类 return o; } ===============htm...原创 2018-08-21 15:48:10 · 1970 阅读 · 0 评论