window.print()方法设置分页

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>  
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">     
<style media=print>   //主要分页作用
.PageNext{page-break-after: always;}   
</style>   
 
<style>
.pd_20 {
    padding: 20px 15px 5px 20px!important;
}

.lh_36 {
    line-height: 36px !important;
}

.tr {
    text-align: right !important;
}

.mt_10 {
    margin-top: 10px !important;
}

.mt60 {
    margin-top: 30px !important;
}

.dib {
    display: inline-block !important;
}

.bb {
    border-bottom: 1px solid #333 !important;
}

.ve_t {
    vertical-align: top;
}

.t_indent {
    text-indent: 20px !important;
}

.declare_table {
    width: 710px;
    margin: 0 auto;
    font-size: 14px;
    color: #333;
}

.declare_table table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    word-wrap: break-word;
    word-break: break-all;
    border: none;
}

.declare_table .input input {
    width: 100%;
    height: 100%;
    font-size: 14px;
    text-indent: 15px;
    color: #333;
    border: none;
}

.declare_table .input input:focus {
    outline: none;
}

.declare_table table .w_auto {
    width: auto;
    font-size: 14px;
    font-family:"宋体"
}

.declare_table .textarea textarea {
    width: 100%;
    font-size: 14px;
    font-family:"宋体";
    text-indent: 5px;
    color: #333;
    padding: 0;
    border: none;
    resize: none;
}

.declare_table .textarea textarea:focus {
    outline: none;
}

.declar

  • 2
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值