<ht
ML>
<head>
<t
ITle>DIV实现
简易漂浮层:固定分页和操作按钮在页面位置 </title>
</head>
<style>
table, th, td
{
border: 1px solid blue;
border-collapse:collapse;
}
div2{
position:absolute;
left:20px;
top:60%;
h
eight:50px;
width:350px;
}
div1{
position:absolute;
right:35%;
top:60%;
height:50px;
width:150px;
}
</style>
<body>
<div style="width:900px;height:400px;overflow:scroll; border:1px solid;">
外层DIV顶部
外层DIV第一行
外层DIV第二行
外层DIV第三行
<div style="background-color:
#C
CFF00;width:1000px;height:400px;border:1px solid;">内层DIV
宽度1600px/高度400px
<table>
<th>列名XX</th><th>列名XX</th><th>列名XX</th><th>列名XX</th><th>列名XX</th><th>列名XX</th><th>列名XX</th><th>列名XX</th><th>列名XX</th><th>列名XX</th><th>列名XX</th><th>列名XX</th><th>列名XX</th><th>列名XX</th><th>列名XX</th><th>列名XX</th><th>列名XX</th><th>列名XX</th><th>列名XX</th>
<tr><td>字段值</td><td>字段值</td><td>字段值</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr>
</table>
</div>
外层DIV底部
外层DIV底部
外层DIV底部
外层DIV底部
外层DIV底部
外层DIV底部
外层DIV底部
外层DIV底部
<div class="div2">
<table>
<tr><td>
<input id="add_
BTn" ty
PE="button" value="上页" onclick="addRecord();" class="add_btn">
<input id="back_btn" type="button" value="下页" class="back_btn" onclick="parent.closeWin();" />
<input id="add_btn" type="button" value="首页" onclick="addRecord();" class="add_btn">
<input id="back_btn" type="button" value="尾页" class="back_btn" onclick="parent.closeWin();" />
</td></tr>
</table>
</div>
<div class="div1">
<table>
<tr><td>
<input id="add_btn" type="button" value="新 增" onclick="addRecord();" class="add_btn">
<input id="back_btn" type="button" value="返 回" class="back_btn" onclick="parent.closeWin();" />
</td></tr>
</table>
</div>
</div>
</body>
</html>