固定头部和尾部,分页打印详细内容
2006-10-11 16:23
736 查看
page-break-after:always :是在这个元素之后进行分页,即这个元素以后的内容全部在下一个页面显示
nextSibling :临近同等级元素的下一个元素
cloneNode(arg):复制(克隆)节点,参数arg:false表示只复制其结构,不复制其中的内容,true表示其结构和内容都复制
insertBefore(newNode,cankaoNode):在cankaoNode前插入newNode,并放回新插入的节点【好像就是newNode】
deleteRow(index):删除某一行
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<html>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<head>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<title>emu's sample of printing with title</title>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedBlock.gif)
<style>...
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
@media screen{...}{.onlyPrint{display:none}}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
@media print{...}{.onlyShow{display:none} .onlyPrint{...}{page-break-after:always}}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockEnd.gif)
</style>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedBlock.gif)
<SCRIPT LANGUAGE="JavaScript">...
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
<!--
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
function loaddata()
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
var fristtr = document.getElementById("show").childNodes[1];
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
var temptr = fristtr;
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
var fristtdtextnode = temptr.childNodes[0].childNodes[0];
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
var temptdtextnode = fristtdtextnode;
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
for(var i = 1;i <31;i++)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
temptdtextnode.nodeValue =i;
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
if (i == 30) return;
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
temptr = temptr.nextSibling;
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
temptdtextnode = temptr.childNodes[0].childNodes[0];
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
// 这里定义每页能打印多少行
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
//模拟数据
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
function prepare()
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
var artoutr = new Array();
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
var arbiaotou = new Array();
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
var arditr = new Array();
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
var frist = true;
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
for(var i=parseInt(linesPerPage.value);i<(show.children.length-1); i+=parseInt(linesPerPage.value))
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
var biaotou,toutr,td,temptou,tempdi,ditr;
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
//tempdi = document.getElementById("di").cloneNode(true);
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
//头信息到toutr
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
toutr = show.children[1].cloneNode(false);
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
td = show.children[1].children[1].cloneNode(false);
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
td.colSpan = 9;
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
td.align = "center";
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
temptou = document.getElementById("tou").cloneNode(true);
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
td.appendChild(temptou);
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
toutr.appendChild(td);
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
//底信息到ditr
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
ditr = show.children[1].cloneNode(false);
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
td = show.children[1].children[1].cloneNode(false);
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
td.colSpan = 9;
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
td.align = "center";
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
tempdi = document.getElementById("di").cloneNode(true);
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
td.appendChild(tempdi);
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
ditr.appendChild(td);
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
//详细数据的标题头
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
biaotou = show.firstChild.cloneNode(true);
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
//添加底信息
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
ditr = show.insertBefore(ditr,show.children[i]);
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
//添加头信息
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
toutr = show.insertBefore(toutr,show.children[i+1]); //复制标题行【就是员工号那行】
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
//添加详细数据标题头
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
biaotou = show.insertBefore(biaotou,show.children[i+2]);
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
show.children[i].className = "onlyPrint";
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
arditr[arditr.length] = ditr;
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
artoutr[artoutr.length] = toutr;
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
arbiaotou[arbiaotou.length] = biaotou;
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
preView();
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
for (var i=artoutr.length-1;i>-1;i--)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
show.deleteRow(arditr[i].rowIndex);
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
show.deleteRow(artoutr[i].rowIndex);
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
show.deleteRow(arbiaotou[i].rowIndex);
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
function pageSetup()...{try...{WB.ExecWB(8,1)}catch(e)...{alert("您的浏览器不支持此功能")}}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
function preView()...{try...{WB.ExecWB(7,1)}catch(e)...{alert("您的浏览器不支持此功能")}}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
//-->
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockEnd.gif)
</SCRIPT>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</head>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<body onload="loaddata();">
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<OBJECT classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 id=WB width=0 VIEWASTEXT></OBJECT>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<center class=onlyShow>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
设定每页打印<input id=linesPerPage size=4 value=10>行
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<button onclick='pageSetup()'>页面设置</button>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<button onClick='prepare()'>打印预览</button></center>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<center class="onlyShow">
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<BR><BR> </center>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<table bgcolor=balck cellspacing=1 cellpadding=3 align=center id="tou">
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<tr>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<td>公共字段1</td><td>公共字段2</td><td>公共字段3</td><td>公共字段4</td>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</tr>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</table>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<table bgcolor=balck cellspacing=1 cellpadding=3 align=center>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<tbody bgcolor=white id=show>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<tr>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<td>员工号</td><td>姓名</td><td>职务</td><td style="width: 87px">部门</td><td>扣税</td><td>上月结余</td><td>实发工资</td><td>应发工资</td><td>应扣款</td></tr>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<tr><td>0009</td><td>sdfa</td><td>副总裁</td><td style="width: 87px">技术部</td><td>150.57</td><td>0.0</td><td>3706.61</td><td>3857.18</td><td>150.57</td></tr>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<tr><td style="height: 24px">1000</td><td style="height: 24px">赵志燕</td><td style="height: 24px">总裁</td><td style="height: 24px; width: 87px;">技术部</td><td style="height: 24px">0.0</td><td style="height: 24px">0.0</td><td style="height: 24px">2204.98</td><td style="height: 24px">2221.62</td><td style="height: 24px">16.64</td></tr>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<tr><td>1001</td><td>赵志平</td><td>副总裁</td><td style="width: 87px">金工车间</td><td>122.74</td><td>0.0</td><td>3599.18</td><td>3739.52</td><td>140.33</td></tr>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<tr><td>1002</td><td>赵志勇</td><td>副总裁</td><td style="width: 87px">生产部</td><td>324.6</td><td>0.0</td><td>5532.95</td><td>5857.56</td><td>324.6</td></tr>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<tr><td>1003</td><td>赵志华</td><td>副总裁</td><td style="width: 87px">质量管理部</td><td>859.69</td><td>0.0</td><td>11155.8</td><td>12016.21</td><td>860.41</td></tr>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<tr><td>1004</td><td>赵志强</td><td>总经理</td><td style="width: 87px">注塑班</td><td>726.58</td><td>0.0</td><td>9757.66</td><td>10484.84</td><td>727.18</td></tr>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<tr><td>1005</td><td>赵小燕</td><td>副总经理</td><td style="width: 87px">计划调度室</td><td>8.98</td><td>0.0</td><td>2036.64</td><td>2045.62</td><td>8.98</td></tr>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<tr><td>1006</td><td>赵小平</td><td>副总经理</td><td style="width: 87px">采购部</td><td>125.02</td><td>0.0</td><td>3438.49</td><td>3563.52</td><td>125.02</td></tr>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<tr><td>1007</td><td>赵小勇</td><td>副总经理</td><td style="width: 87px">销售部</td><td>309.29</td><td>0.0</td><td>5372.26</td><td>5681.56</td><td>309.29</td></tr>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<tr><td>1008</td><td>赵小华</td><td>经理助理</td><td style="width: 87px">用户服务部</td><td>0.0</td><td>0.0</td><td>11148.49</td><td>12008.21</td><td>859.71</td></tr>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<tr><td>1009</td><td>赵小强</td><td>经理助理</td><td style="width: 87px">质量管理部</td><td>726.32</td><td>0.0</td><td>9754.92</td><td>10481.84</td><td>726.92</td></tr>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<tr><td>1010</td><td>赵燕</td><td>经理助理</td><td style="width: 87px">海外市场部</td><td>8.98</td><td>0.0</td><td>2036.64</td><td>2045.62</td><td>8.98</td></tr>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<tr><td>1011</td><td>赵平</td><td>部门经理</td><td style="width: 87px">营销部</td><td>125.02</td><td>0.0</td><td>3438.49</td><td>3563.52</td><td>125.02</td></tr>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<tr><td>1012</td><td>赵勇</td><td>部门经理</td><td style="width: 87px">开发部</td><td>309.29</td><td>0.0</td><td>5372.26</td><td>5681.56</td><td>309.29</td></tr>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<tr><td>1013</td><td>赵华</td><td>部门经理</td><td style="width: 87px">公司</td><td>859.0</td><td>0.0</td><td>11148.49</td><td>12008.21</td><td>859.71</td></tr>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<tr><td>1014</td><td>赵强</td><td>部门经理</td><td style="width: 87px">总裁办公室</td><td>726.32</td><td>0.0</td><td>9754.92</td><td>10481.84</td><td>726.92</td></tr>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<tr><td>1015</td><td>赵海燕</td><td>部门经理</td><td style="width: 87px">企业发展部</td><td>8.98</td><td>0.0</td><td>2036.64</td><td>2045.62</td><td>8.98</td></tr>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<tr><td>1016</td><td>赵海平</td><td>部门经理</td><td style="width: 87px">质量管理部</td><td>125.02</td><td>0.0</td><td>3438.49</td><td>3563.52</td><td>125.02</td></tr>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<tr><td>1017</td><td>赵海勇</td><td>部门经理</td><td style="width: 87px">计划财经部</td><td>309.29</td><td>0.0</td><td>5372.26</td><td>5681.56</td><td>309.29</td></tr>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<tr><td>1018</td><td>赵海华</td><td>部门经理</td><td style="width: 87px">人事行政部</td><td>859.0</td><td>0.0</td><td>11148.49</td><td>12008.21</td><td>859.71</td></tr>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<tr><td>1019</td><td>赵海强</td><td>部门经理</td><td style="width: 87px">技术科</td><td>726.32</td><td>0.0</td><td>9754.92</td><td>10481.84</td><td>726.92</td></tr>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<tr><td>1020</td><td>赵健燕</td><td>部门经理</td><td style="width: 87px">小冲压</td><td>8.98</td><td>0.0</td><td>2036.64</td><td>2045.62</td><td>8.98</td></tr>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<tr><td>1021</td><td>赵健平</td><td>部门经理</td><td style="width: 87px">大冲压</td><td>125.02</td><td>0.0</td><td>3438.49</td><td>3563.52</td><td>125.02</td></tr>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<tr><td>1022</td><td>赵健勇</td><td>部门经理</td><td style="width: 87px">计划调度室</td><td>309.29</td><td>0.0</td><td>5372.26</td><td>5681.56</td><td>309.29</td></tr>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<tr><td>1023</td><td>赵健华</td><td>部门经理</td><td style="width: 87px">生产部</td><td>859.0</td><td>0.0</td><td>11148.49</td><td>12008.21</td><td>859.71</td></tr>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<tr><td>1024</td><td>赵健强</td><td>部门经理</td><td style="width: 87px">质量管理部</td><td>726.32</td><td>0.0</td><td>9754.92</td><td>10481.84</td><td>726.92</td></tr>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<tr><td>1026</td><td>赵国平</td><td>部门经理</td><td style="width: 87px">管理组</td><td>125.02</td><td>0.0</td><td>3438.49</td><td>3563.52</td><td>125.02</td></tr>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<tr><td>1027</td><td>赵国勇</td><td>部门经理</td><td style="width: 87px">采购部</td><td>309.29</td><td>0.0</td><td>5372.26</td><td>5681.56</td><td>309.29</td></tr>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<tr><td>1028</td><td>赵国华</td><td>部门经理</td><td style="width: 87px">业务员</td><td>859.0</td><td>0.0</td><td>11148.49</td><td>12008.21</td><td>859.71</td></tr>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<tr><td>1029</td><td>赵国强</td><td>部门经理</td><td style="width: 87px">销售部</td><td>726.32</td><td>0.0</td><td>9754.92</td><td>10481.84</td><td>726.92</td>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</tr>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</tbody>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</table>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<table bgcolor=balck cellspacing=1 cellpadding=3 align=center id="di">
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<tr>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<td>审批意见1</td><td>审批意见2</td><td>审批意见3</td><td>审批意见4</td>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</tr>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</table>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</body>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</html>
nextSibling :临近同等级元素的下一个元素
cloneNode(arg):复制(克隆)节点,参数arg:false表示只复制其结构,不复制其中的内容,true表示其结构和内容都复制
insertBefore(newNode,cankaoNode):在cankaoNode前插入newNode,并放回新插入的节点【好像就是newNode】
deleteRow(index):删除某一行
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<html>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<head>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<title>emu's sample of printing with title</title>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedBlock.gif)
<style>...
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
@media screen{...}{.onlyPrint{display:none}}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
@media print{...}{.onlyShow{display:none} .onlyPrint{...}{page-break-after:always}}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockEnd.gif)
</style>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedBlock.gif)
<SCRIPT LANGUAGE="JavaScript">...
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
<!--
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
function loaddata()
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
var fristtr = document.getElementById("show").childNodes[1];
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
var temptr = fristtr;
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
var fristtdtextnode = temptr.childNodes[0].childNodes[0];
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
var temptdtextnode = fristtdtextnode;
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
for(var i = 1;i <31;i++)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
temptdtextnode.nodeValue =i;
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
if (i == 30) return;
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
temptr = temptr.nextSibling;
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
temptdtextnode = temptr.childNodes[0].childNodes[0];
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
// 这里定义每页能打印多少行
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
//模拟数据
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
function prepare()
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
var artoutr = new Array();
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
var arbiaotou = new Array();
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
var arditr = new Array();
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
var frist = true;
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
for(var i=parseInt(linesPerPage.value);i<(show.children.length-1); i+=parseInt(linesPerPage.value))
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
var biaotou,toutr,td,temptou,tempdi,ditr;
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
//tempdi = document.getElementById("di").cloneNode(true);
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
//头信息到toutr
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
toutr = show.children[1].cloneNode(false);
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
td = show.children[1].children[1].cloneNode(false);
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
td.colSpan = 9;
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
td.align = "center";
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
temptou = document.getElementById("tou").cloneNode(true);
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
td.appendChild(temptou);
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
toutr.appendChild(td);
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
//底信息到ditr
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
ditr = show.children[1].cloneNode(false);
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
td = show.children[1].children[1].cloneNode(false);
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
td.colSpan = 9;
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
td.align = "center";
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
tempdi = document.getElementById("di").cloneNode(true);
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
td.appendChild(tempdi);
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
ditr.appendChild(td);
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
//详细数据的标题头
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
biaotou = show.firstChild.cloneNode(true);
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
//添加底信息
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
ditr = show.insertBefore(ditr,show.children[i]);
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
//添加头信息
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
toutr = show.insertBefore(toutr,show.children[i+1]); //复制标题行【就是员工号那行】
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
//添加详细数据标题头
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
biaotou = show.insertBefore(biaotou,show.children[i+2]);
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
show.children[i].className = "onlyPrint";
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
arditr[arditr.length] = ditr;
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
artoutr[artoutr.length] = toutr;
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
arbiaotou[arbiaotou.length] = biaotou;
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
preView();
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
for (var i=artoutr.length-1;i>-1;i--)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
show.deleteRow(arditr[i].rowIndex);
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
show.deleteRow(artoutr[i].rowIndex);
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
show.deleteRow(arbiaotou[i].rowIndex);
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
function pageSetup()...{try...{WB.ExecWB(8,1)}catch(e)...{alert("您的浏览器不支持此功能")}}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
function preView()...{try...{WB.ExecWB(7,1)}catch(e)...{alert("您的浏览器不支持此功能")}}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
//-->
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockEnd.gif)
</SCRIPT>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</head>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<body onload="loaddata();">
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<OBJECT classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 id=WB width=0 VIEWASTEXT></OBJECT>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<center class=onlyShow>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
设定每页打印<input id=linesPerPage size=4 value=10>行
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<button onclick='pageSetup()'>页面设置</button>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<button onClick='prepare()'>打印预览</button></center>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<center class="onlyShow">
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<BR><BR> </center>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<table bgcolor=balck cellspacing=1 cellpadding=3 align=center id="tou">
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<tr>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<td>公共字段1</td><td>公共字段2</td><td>公共字段3</td><td>公共字段4</td>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</tr>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</table>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<table bgcolor=balck cellspacing=1 cellpadding=3 align=center>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<tbody bgcolor=white id=show>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<tr>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<td>员工号</td><td>姓名</td><td>职务</td><td style="width: 87px">部门</td><td>扣税</td><td>上月结余</td><td>实发工资</td><td>应发工资</td><td>应扣款</td></tr>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<tr><td>0009</td><td>sdfa</td><td>副总裁</td><td style="width: 87px">技术部</td><td>150.57</td><td>0.0</td><td>3706.61</td><td>3857.18</td><td>150.57</td></tr>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<tr><td style="height: 24px">1000</td><td style="height: 24px">赵志燕</td><td style="height: 24px">总裁</td><td style="height: 24px; width: 87px;">技术部</td><td style="height: 24px">0.0</td><td style="height: 24px">0.0</td><td style="height: 24px">2204.98</td><td style="height: 24px">2221.62</td><td style="height: 24px">16.64</td></tr>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<tr><td>1001</td><td>赵志平</td><td>副总裁</td><td style="width: 87px">金工车间</td><td>122.74</td><td>0.0</td><td>3599.18</td><td>3739.52</td><td>140.33</td></tr>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<tr><td>1002</td><td>赵志勇</td><td>副总裁</td><td style="width: 87px">生产部</td><td>324.6</td><td>0.0</td><td>5532.95</td><td>5857.56</td><td>324.6</td></tr>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<tr><td>1003</td><td>赵志华</td><td>副总裁</td><td style="width: 87px">质量管理部</td><td>859.69</td><td>0.0</td><td>11155.8</td><td>12016.21</td><td>860.41</td></tr>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<tr><td>1004</td><td>赵志强</td><td>总经理</td><td style="width: 87px">注塑班</td><td>726.58</td><td>0.0</td><td>9757.66</td><td>10484.84</td><td>727.18</td></tr>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<tr><td>1005</td><td>赵小燕</td><td>副总经理</td><td style="width: 87px">计划调度室</td><td>8.98</td><td>0.0</td><td>2036.64</td><td>2045.62</td><td>8.98</td></tr>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<tr><td>1006</td><td>赵小平</td><td>副总经理</td><td style="width: 87px">采购部</td><td>125.02</td><td>0.0</td><td>3438.49</td><td>3563.52</td><td>125.02</td></tr>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<tr><td>1007</td><td>赵小勇</td><td>副总经理</td><td style="width: 87px">销售部</td><td>309.29</td><td>0.0</td><td>5372.26</td><td>5681.56</td><td>309.29</td></tr>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<tr><td>1008</td><td>赵小华</td><td>经理助理</td><td style="width: 87px">用户服务部</td><td>0.0</td><td>0.0</td><td>11148.49</td><td>12008.21</td><td>859.71</td></tr>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<tr><td>1009</td><td>赵小强</td><td>经理助理</td><td style="width: 87px">质量管理部</td><td>726.32</td><td>0.0</td><td>9754.92</td><td>10481.84</td><td>726.92</td></tr>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<tr><td>1010</td><td>赵燕</td><td>经理助理</td><td style="width: 87px">海外市场部</td><td>8.98</td><td>0.0</td><td>2036.64</td><td>2045.62</td><td>8.98</td></tr>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<tr><td>1011</td><td>赵平</td><td>部门经理</td><td style="width: 87px">营销部</td><td>125.02</td><td>0.0</td><td>3438.49</td><td>3563.52</td><td>125.02</td></tr>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<tr><td>1012</td><td>赵勇</td><td>部门经理</td><td style="width: 87px">开发部</td><td>309.29</td><td>0.0</td><td>5372.26</td><td>5681.56</td><td>309.29</td></tr>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<tr><td>1013</td><td>赵华</td><td>部门经理</td><td style="width: 87px">公司</td><td>859.0</td><td>0.0</td><td>11148.49</td><td>12008.21</td><td>859.71</td></tr>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<tr><td>1014</td><td>赵强</td><td>部门经理</td><td style="width: 87px">总裁办公室</td><td>726.32</td><td>0.0</td><td>9754.92</td><td>10481.84</td><td>726.92</td></tr>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<tr><td>1015</td><td>赵海燕</td><td>部门经理</td><td style="width: 87px">企业发展部</td><td>8.98</td><td>0.0</td><td>2036.64</td><td>2045.62</td><td>8.98</td></tr>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<tr><td>1016</td><td>赵海平</td><td>部门经理</td><td style="width: 87px">质量管理部</td><td>125.02</td><td>0.0</td><td>3438.49</td><td>3563.52</td><td>125.02</td></tr>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<tr><td>1017</td><td>赵海勇</td><td>部门经理</td><td style="width: 87px">计划财经部</td><td>309.29</td><td>0.0</td><td>5372.26</td><td>5681.56</td><td>309.29</td></tr>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<tr><td>1018</td><td>赵海华</td><td>部门经理</td><td style="width: 87px">人事行政部</td><td>859.0</td><td>0.0</td><td>11148.49</td><td>12008.21</td><td>859.71</td></tr>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<tr><td>1019</td><td>赵海强</td><td>部门经理</td><td style="width: 87px">技术科</td><td>726.32</td><td>0.0</td><td>9754.92</td><td>10481.84</td><td>726.92</td></tr>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<tr><td>1020</td><td>赵健燕</td><td>部门经理</td><td style="width: 87px">小冲压</td><td>8.98</td><td>0.0</td><td>2036.64</td><td>2045.62</td><td>8.98</td></tr>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<tr><td>1021</td><td>赵健平</td><td>部门经理</td><td style="width: 87px">大冲压</td><td>125.02</td><td>0.0</td><td>3438.49</td><td>3563.52</td><td>125.02</td></tr>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<tr><td>1022</td><td>赵健勇</td><td>部门经理</td><td style="width: 87px">计划调度室</td><td>309.29</td><td>0.0</td><td>5372.26</td><td>5681.56</td><td>309.29</td></tr>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<tr><td>1023</td><td>赵健华</td><td>部门经理</td><td style="width: 87px">生产部</td><td>859.0</td><td>0.0</td><td>11148.49</td><td>12008.21</td><td>859.71</td></tr>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<tr><td>1024</td><td>赵健强</td><td>部门经理</td><td style="width: 87px">质量管理部</td><td>726.32</td><td>0.0</td><td>9754.92</td><td>10481.84</td><td>726.92</td></tr>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<tr><td>1026</td><td>赵国平</td><td>部门经理</td><td style="width: 87px">管理组</td><td>125.02</td><td>0.0</td><td>3438.49</td><td>3563.52</td><td>125.02</td></tr>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<tr><td>1027</td><td>赵国勇</td><td>部门经理</td><td style="width: 87px">采购部</td><td>309.29</td><td>0.0</td><td>5372.26</td><td>5681.56</td><td>309.29</td></tr>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<tr><td>1028</td><td>赵国华</td><td>部门经理</td><td style="width: 87px">业务员</td><td>859.0</td><td>0.0</td><td>11148.49</td><td>12008.21</td><td>859.71</td></tr>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<tr><td>1029</td><td>赵国强</td><td>部门经理</td><td style="width: 87px">销售部</td><td>726.32</td><td>0.0</td><td>9754.92</td><td>10481.84</td><td>726.92</td>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</tr>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</tbody>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</table>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<table bgcolor=balck cellspacing=1 cellpadding=3 align=center id="di">
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<tr>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<td>审批意见1</td><td>审批意见2</td><td>审批意见3</td><td>审批意见4</td>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</tr>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</table>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</body>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</html>
相关文章推荐
- table头部、尾部固定;中间内容定高自适应滚动
- table头部、尾部固定;中间内容定高自适应滚动
- Zend Framework2-视图助手-在视图文件或控制器中追加脚本文件或脚本内容到头部或尾部
- 文章分页 及 动态列表 静态 详细内容 思想
- linux 查看文本文件的头部、尾部行内容 及查看行数
- 怎么迅速将Java对象的详细内容打印下来
- 头部和尾部固定中间自适应的布局
- 分页查询JSP页面查询列表详细内容
- 打印详细错误内容到log日志中
- [置顶] window.print()页面打印之表格内容分页填充进行分页打印
- 算法研究之——链表的一些操作(创建、打印,在头部、中间、尾部插入节点)
- 打印列表从尾部到头部
- apiCloud中实现头部与内容分离与操作规范,App头部header固定,头部与内容分离
- 网页打印,分页,隐藏不打印内容的实现
- Excel--按内容分页打印
- 请问vb.NET中如何打印一个某一固定区域的内容?
- 移动端,控制头部尾部固定
- html页面 头部、尾部固定 中间可拖动效果
- 剑指offer--给定一个链表,从尾部到头部打印,输出链表节点的值
- css固定div头部 滚动条滚动内容