表格头部header固定
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="Generator" content="EditPlus®">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
<title>Document</title>
<link rel="stylesheet" href="css/tableStyle.css" />
<link rel="stylesheet" href="css/superTables.css" />
</head>
<body>
<div id="div_container" style="padding: 0 20px;text-align:center;">
<!-- 固定表头 table外层必须包有一个div id="my_div" class="fakeContainer first_div" 引入superTables.js 在页面下面还需要调用 -->
<div id="my_div" class="fakeContainer first_div" style="padding:1px">
<table border="1" id="demoTable" style="margin-top:5px;border-collapse: collapse;">
<tr id="my_tr">
<th class="center" rowspan="2">A</th>
<th class="center" rowspan="2">B</th>
<th class="center" colspan="8">C</th>
<th class="center" colspan="4">D</th>
<th class="center" colspan="5">E</th>
<th class="center" rowspan="2">F</th>
</tr>
<tr>
<th class="center">G</th>
<th class="center">H</th>
<th class="center">I</th>
<th class="center">J</th>
<th class="center">K</th>
<th class="center">L</th>
<th class="center">M</th>
<th class="center">N</th> <th class="center">O</th>
<th class="center">P</th>
<th class="center">Q</th>
<th class="center">R</th> <th class="center">S</th>
<th class="center">T</th>
<th class="center">U</th>
<th class="center">V</th>
<th class="center">W</th>
</tr>
<tr>
<td class="center" id="td">a</td>
<td class="center">12</a></td>
<td class="center">7</td>
<td class="center">2</td>
<td class="center">0</td>
<td class="center">0</td>
<td class="center">0</td>
<td class="center">3</td>
<td class="center">0</td>
<td class="center">0</td> <td class="center">1</td>
<td class="center">0</td>
<td class="center">2</td>
<td class="center">1</td> <td class="center">2744</td>
<td class="center">1728</td>
<td class="center">1634</td>
<td class="center">1744</td>
<td class="center">7850</td>
<td class="center">208</td>
</tr>
<tr>
<td class="center" id="td">b</td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
</tr> <tr>
<td class="center" id="td">c</td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
</tr> <tr>
<td class="center" id="td">d</td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
</tr> <tr>
<td class="center" id="td">e</td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
</tr> <tr>
<td class="center" id="td">f</td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
</tr> <tr>
<td class="center" id="td">g</td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
</tr> <tr>
<td class="center" id="td">h</td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
</tr> <tr>
<td class="center" id="td">i</td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
</tr> <tr>
<td class="center" id="td">j</td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
</tr> <tr>
<td class="center" id="td">k</td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
</tr> <tr>
<td class="center" id="td">l</td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
</tr> <tr>
<td class="center" id="td">m</td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
</tr> <tr>
<td class="center" id="td">n</td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
</tr> <tr>
<td class="center" id="td">o</td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
</tr> <tr>
<td class="center" id="td">p</td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
</tr> <tr>
<td class="center" id="td">q</td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
</tr> <tr>
<td class="center" id="td">r</td> <td class="center">12</td>
<td class="center">7</td>
<td class="center">2</td>
<td class="center">0</td>
<td class="center">0</td>
<td class="center">0</td>
<td class="center">3</td>
<td class="center">0</td>
<td class="center">0</td> <td class="center">1</td>
<td class="center">0</td>
<td class="center">2</td>
<td class="center">1</td> <td class="center">2744</td>
<td class="center">1728</td>
<td class="center">1634</td>
<td class="center">1744</td>
<td class="center">7850</td>
<td class="center">208</td>
</tr> <tr>
<td class="center" id="td">s</td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
</tr> <tr>
<td class="center" id="td">t</td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
</tr> <tr>
<td class="center" id="td">u</td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
</tr> <tr>
<td class="center" id="td">v</td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
</tr> <tr>
<td class="center" id="td">w</td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
</tr> <tr>
<td class="center" id="td">x</td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
</tr> <tr>
<td class="center" id="td">y</td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
</tr> <tr>
<td class="center" id="td">z</td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
</tr> <tr>
<td class="center" id="td">1</td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
</tr> <tr>
<td class="center" id="td">2</td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
</tr> <tr>
<td class="center" id="td">3</td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
</tr> <tr>
<td class="center" id="td">4</td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
</tr> <tr>
<td class="center" id="td">5</td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
</tr> <tr>
<td class="center" id="td">6</td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
</tr> <tr>
<td class="center" id="td">7</td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
</tr> <tr>
<td class="center" id="td">8</td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
</tr> <tr>
<td class="center" id="td">9</td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
</tr> <tr>
<td class="center" id="td">10</td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td> <td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
<td class="center"></td>
</tr>
</table>
</div>
</div>
<script src="http://www.jq22.com/jquery/jquery-1.10.2.js"></script>
<script type="text/javascript" src="js/superTables.js"></script>
<script type="text/javascript">
//此处调用superTables.js里需要的函数
window.onload=function(){
new superTable("demoTable", {cssSkin : "sDefault",
fixedCols : 1, //固定几列
headerRows :2, //头部固定行数
onStart : function () {
this.start = new Date();
},
onFinish : function () {
}
}); $("#div_container").css("width","1000px");//这个宽度是容器宽度,不同容器宽度不同
$(".fakeContainer").css("height","400px");//这个高度是整个table可视区域的高度,不同情况高度不同 //.sData是调用superTables.js之后页面自己生成的 这块就是出现滚动条 达成锁定表头和列的效果
$(".sData").css("width","885px");//这块的宽度是用$("#div_container")的宽度减去锁定的列的宽度
$(".sData").css("height","325px");//这块的高度是用$("#div_container")的高度减去锁定的表头的高度 //目前谷歌 ie8+ 360浏览器均没问题 有些细小的东西要根据项目需求改 //有兼容问题的话可以在下面判断浏览器的方法里写
if(navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion.match(/9./i)=="9.")
{//alert("IE 9.0"); }else if (!!window.ActiveXObject || "ActiveXObject" in window){//alert("IE 10"); }else{//其他浏览器
//alert("其他浏览器");
}
} </script>
</body>
</html> 基于superTables做的改造,可以完美锁定表头和列
表格头部header固定的更多相关文章
- apiCloud中实现头部与内容分离与操作规范,App头部header固定,头部与内容分离
官方案例 1.头部拆分成一个页面比如news-text <!doctype html> <html> <head> <meta charset="u ...
- Css 设置固定表格头部,内容可滚动
效果图:
- flex盒模型实现头部尾部固定
近期做移动app.wap等站,需要头部固定在顶部,不随着内容滚动而滚动平时第一想法就是使用position:fixed;top:0;z-index:10;这样去实现但这样使用fixed之后,会在ios ...
- 解决fixed在苹果手机抖动问题/头部底部固定布局
1.头部和底部固定,中间内容滚动,不涉及fixed 1)absolute与height:100% <!DOCTYPE html><html><head> <m ...
- css3 的 calc()函数在布局中的使用----头部高度固定,页面正好占满一屏
最近项目遇到一个布局需求,头部高度固定,页面需要刚好占满一屏幕. 如下示意图: 方法:使用calc .wrap{ position: relative; margin-left: 24px; marg ...
- VS2008 C++ 利用WinHttp API获取Http请求/响应头部Header
http://www.cnblogs.com/LCCRNblog/p/3833472.html 这一篇博客中,实现了获取http请求/响应后的html源码,现在需要获取http请求/响应的头部Head ...
- 多个页面引用公共的头部 header.html 和尾部 footer.html
方法:通过load()函数,引入公共头部和尾部文件; js代码预览: $(".headerPage").load("header.html"); $(" ...
- 表格头部与左侧内容随滚动条位置改变而改变(基于jQuery)
效果图如下: HTML代码: <!DOCTYPE html> <html lang="zh-CN"> <head> <meta chars ...
- ionic 隐藏header-ionic中隐藏头部header
ionic 中隐藏头部header 通过 hide-nav-bar="true" 来实现 <ion-view hide-nav-bar="true"> ...
随机推荐
- GitHub上README.md教程(copy)
[说明:转载于http://blog.csdn.net/kaitiren/article/details/38513715] 最近对它的README.md文件颇为感兴趣.便写下这贴,帮助更多的还不会编 ...
- 最短路径(Dijkstra算法)
当用图结构来表示通信.交通等网络,权重代表距离或者成本,寻找最短路径就成为了一个重要的任务. 给定带权网络G=(V;E),源点s,对于其他所有顶点v,寻找s到v的最短路径,连接成一颗最短路径树.可以证 ...
- 命令搜索命令(whereis、which)
一.whereis命名 解释:搜索系统命令所在的位置,不能查询文件 语法:whereis 命令 -b 之查找可执行的文件在哪里 -m 只查找帮助文件 二.which 命令 解释:能搜索命令所在位置, ...
- ElasticSearch NEST
1. 什么是ElasticSearch? ElasticSearch is a powerful open source search and analytics engine that makes ...
- [Qt Creator 快速入门] 第1章 Qt Creator简介
Qt Creator 是一个跨平台的.完整的 Qt 集成开发环境,其中包括了高级C++代码编辑器.项目和生成管理工具.集成的上下文相关的帮助系统.图形化调试器.代码管理和浏览工具等.这一章先对 Qt ...
- [NOIP2004]火星人
Description 人类终于登上了火星的土地并且见到了神秘的火星人.人类和火星人都无法理解对方的语言,但是我们的科学家发明了一种用数字交流的方法.这种交流方法是这样的,首先,火星人把一个非常大的数 ...
- ACM_拼接数字
拼接数字 Time Limit: 2000/1000ms (Java/Others) Problem Description: 给定一个正整数数组,现在把数组所有数字都拼接成一个大数字,如何使得拼接后 ...
- TCP流量控制与拥塞解决
滑动窗口 但要提高网络利用率: nagle算法 - 延迟 慢启动.拥塞避免 发送端主导cwnd init set ssthresh & cwnd = swnd loop : 网不阻塞 ...
- [转]从数据到代码——基于T4的代码生成方式
本文转自:http://www.cnblogs.com/artech/archive/2010/10/23/1859529.html 在之前写一篇文章<从数据到代码>(上篇.下篇)中,我通 ...
- 22 C#中的异常处理入门 try catch throw
软件运行过程中,如果出现了软件正常运行不应该出现的情况,软件就出现了异常.这时候我们需要去处理这些异常.或者让程序终止,避免出现更严重的错误.或者提示用户进行某些更改让程序可以继续运行下去. C#编程 ...