0

I want to know how to convert a normal html table to be looked like flexigrid. Is it possible to avoid scrolling of headers in the table like flexigrid?

4

1 回答 1

1

可以用 CSS 修复头部。它将始终保持在顶部可见。

<table>
 <thead style="position:fixed; top:0px; z-index:42; background:#fff;">
  <tr>
   <th>head cell a</th>
   <th>head cell b</th>
  </tr>
 </thead>
 <tbody>
  <tr>
   <td>1a</td>
   <td>1b</td>
  </tr>
  <tr>
   <td>2a</td>
   <td>2b</td>
  </tr>
  <!-- ... -->
 </tbody>
</table>
于 2011-01-03T09:34:05.303 回答