<HTML>
<HEAD>
<style type="text/css">
.FixedCol
{
background-color:Pink;
border-width:1px;
border-color:Black;
border-style:Solid;
height:20px;
}
.Col
{
text-align:center;
border-width:1px;
border-color:Black;
border-style:Solid;
height:20px;
}
.FreezingHeader
{
position:relative;
top:expression(this.offsetParent.scrollTop);
z-index:10;
}
.FreezingFooter
{
position:absolute;
top:expression(this.offsetParent.scrollTop + this.offsetParent.offsetHeight - this.offsetHeight);
z-index:10;
}
</style>
</HEAD>
<BODY>
<div id="divFrame" style="overflow:auto; position:relative; width:50px; height:120px;">
<table cellspacing="0" cellpadding="0">
<tr class="FreezingHeader"><th class="FixedCol">あ</th></tr>
<tr><td class="Col">い</td></tr>
<tr><td class="Col">う</td></tr>
<tr><td class="Col">え</td></tr>
<tr><td class="Col">お</td></tr>
<tr><td class="Col">か</td></tr>
<tr><td class="Col">き</td></tr>
<tr><td class="Col">く</td></tr>
<tr><td class="Col">け</td></tr>
<tr><td class="Col">こ</td></tr>
<tr class="FreezingFooter"><td class="FixedCol">こ</td></tr>
</table>
</div>
</BODY>
</HTML>
|