五月综合缴情婷婷六月,色94色欧美sute亚洲线路二,日韩制服国产精品一区,色噜噜一区二区三区,香港三级午夜理伦三级三

您現(xiàn)在的位置: 365建站網(wǎng) > 365文章 > 復(fù)合表頭demo

復(fù)合表頭demo

文章來源:365jz.com     點(diǎn)擊數(shù):297    更新時(shí)間:2009-11-09 22:40   參與評論

 <HTML>
 <HEAD>
 <style>
.grid{
    border:solid 1px #EEEEEE;
    border-collapse:collapse;
    height1:100%;
    width:100%;
    border-bottom: 1px solid #96d9f9;
    font-size: 14px;
}
.grid-head{
    text-align: center;
    height: 28px;
    font-weight: bold;
    border: solid 1px inactiveborder;
}
.subtotal-column{
    border: solid 1px inactiveborder;
    text-align: right;
    font-weight: bold;
    background-color: #CCDDED;
}
.total-column{
    border: solid 1px inactiveborder;
    text-align: right;
    font-weight: bold;
    background-color: #BBDDED;
}
.subtotal-row{
    border: solid 1px inactiveborder;
    text-align: right;
    font-weight: bold;
    background-color: #CCEDDD;
}
.total-row{
    border: solid 1px inactiveborder;
    text-align: right;
    font-weight: bold;
    background-color: #AAEDDD;
}
 </style>

<BODY>
 <div id="aaaa"></div><BR>
 <div id="bbbb"></div>
  <SCRIPT LANGUAGE="JavaScript">
  var table = new TableHeader();

  var render = 'new Array("(2,2,時(shí)間)(1,2,收入)(1,2,支出)","(1,1,充值)(1,1,手續(xù)費(fèi))(1,1,提現(xiàn))(1,1,手續(xù)費(fèi))",'
        +'"(2,1,2008),(1,1,上半年)(1,1,10)(1,1,11)(1,1,12)(1,1,13)","(1,1,下半年)(1,1,2000)(1,1,21)(1,1,22)(1,1,23)",'
        +'"(2,1,2009),(1,1,上半年)(1,1,20)(1,1,21)(1,1,22)(1,1,23)","(1,1,下半年)(1,1,30)(1,1,31)(1,1,32)(1,1,33)")';
  table.buildRender(render);
  table.toUI();
  //document.getElementById("aaaa").innerHTML = table.tableObj.outerHTML;

  table.subTotalRow("全年",1,1, 2,3, "subtotal-row");
  table.subTotalRow("全年",1,1, 5,6, "subtotal-row");
  table.addStatRow("合計(jì)","$4+$7", 8,0,2, "total-row");
  table.subTotalColumn("小計(jì)",1,1, 2,3, "subtotal-column");
  table.subTotalColumn("小計(jì)",1,1, 5,6, "subtotal-column");
  table.addStatColumn("總計(jì)","$4+$7", 0,8,2, "total-column");
  //table.deleteRow(7);
  //table.deleteRow(4);
  //table.deleteColumn(8);
  //table.tableObj.rows[7].deleteCell(7);
  table.formatNumbit(2,8, 2,8, 1, true);
  document.getElementById("bbbb").innerHTML = table.tableObj.outerHTML;
  </SCRIPT>
 </BODY>
</HTML>

如對本文有疑問,請?zhí)峤坏浇涣髡搲瑥V大熱心網(wǎng)友會(huì)為你解答??! 點(diǎn)擊進(jìn)入論壇

發(fā)表評論 (297人查看,0條評論)
請自覺遵守互聯(lián)網(wǎng)相關(guān)的政策法規(guī),嚴(yán)禁發(fā)布色情、暴力、反動(dòng)的言論。
昵稱:
最新評論
------分隔線----------------------------

其它欄目

· 建站教程
· 365學(xué)習(xí)

業(yè)務(wù)咨詢

· 技術(shù)支持
· 服務(wù)時(shí)間:9:00-18:00
365建站網(wǎng)二維碼

Powered by 365建站網(wǎng) RSS地圖 HTML地圖

copyright © 2013-2024 版權(quán)所有 鄂ICP備17013400號