Having difficulty with the position: relative
property in IE9. Check out this demo for reference:
<div style="overflow:scroll;height:120px;">
<table id="table" width="100%">
<tr style="position:relative;background-color:#1b72a4;">
<td>fff
</td>
<td>fff
</td>
<td>fff
</td>
<td>fff
</td>
<td>fff
</td>
<td>fff
</td>
</tr>
<tr>
<td>data
</td>
<td>data
</td>
<td>data
</td>
<td>data
</td>
<td>data
</td>
<td>data
</td>
</tr>
<tr>
<td>data
</td>
<td>data
</td>
<td>data
</td>
<td>data
</td>
<td>data
</td>
<td>data
</td>
</tr>
<tr>
<td>data
</td>
<td>data
</td>
<td>data
</td>
<td>data
</td>
<td>data
</td>
<td>data
</td>
</tr>
<tr>
<td>data
</td>
<td>data
</td>
<td>data
</td>
<td>data
</td>
<td>data
</td>
<td>data
</td>
</tr>
<tr>
<td>data
</td>
<td>data
</td>
<td>data
</td>
<td>data
</td>
<td>data
</td>
<td>data
</td>
</tr>
<tr>
<td>data
</td>
<td>data
</td>
<td>data
</td>
<td>data
</td>
<td>data
</td>
<td>data
</td>
</tr>
<tr>
<td>data
</td>
<td>data
</td>
<td>data
</td>
<td>data
</td>
<td>data
</td>
<td>data
</td>
</tr>
</table>
</div>
Attempting to fix the first row by applying style="position:relative;"
Unfortunately, this style only seems to work in IE7. What can be done to fixate the first row in all versions of IE?