這是帶滾動按鈕的簡單列表顯示的代碼示例。它工作良好。但現在我想凍結第一row..that是header..Can請你幫我..凍結IE 6.0和IE 7.0中的列標題
<div id="user">
<table class="user_list" frame="box" bordercolor="#c1a3cf"
border="1" cellspacing="3" cellpadding="3">
<thead>
<tr>
<th style="padding-top:15px;"> Nr. </th>
<th style="padding-top:15px;"> Concession Nr. </th>
<th style="padding-top:15px;"> Action Performed </th>
<th style="padding-top:15px;"> Action by </th>
<th style="padding-top:15px;"> Action on </th>
</tr>
</thead>
<tbody>
<?php $result = get_user_actionlog($seite,$entries);
if($seite == 1) {
$number = 0;
} else {
$number = ($seite-1) * $entries;
}
while($record = odbc_fetch_array($result)) { ?>
<tr>
<td width="25" class="rtodata"><?php $number += 1;
echo $number;?></td>
<td width="150" class="rtodata"><?php echo $record['concession']; ?> </td>
<td width="400" class="rtodata"><?php echo $record['action_performed'];?></td>
<td width="75" class="rtodata"><?php echo $record['action_by'];?></td>
<td width="100" class="rtodata"><?php echo $record['action_on'];?></td>
</tr>
<?php }?>
</tbody>
</table>
</div>
,在我的CSS文件,
#user {width: 900px;height:800px;overflow:auto;}
編輯: -
scrollable table with fixed header在Firefox 6.0中的IE 6.0中完美工作,但不在IE 7.0中。如果你們任何一個冠軍都可以更新...
你是什麼意思的「凍結?」 – Kyle 2011-02-23 07:23:30
我的意思是說盡管我使用滾動條向下滾動,但標題應該固定。我應該可以看到標題。 – satya 2011-02-23 07:25:15