Head头部固定滚动条

<style type="text/css">

.FixedTitleRow {    position: relative;    top: expression(this.offsetParent.scrollTop);    z-index: 10;    width: 80px; }

 </style>

 

    <div style="overflow-x: auto; overflow-y: auto; height: 100px; width:200px;">
     <table>
      <tr>
  <td class="FixedTitleRow">no</td>   
  <td class="FixedTitleRow">head</td>   
    <tr>
  <st:loop item="${list }" var="s">
   <tr>
    <td>1</td>
    <td>${s}</td>
   </tr>
  </st:loop>
</table>
 </div>

posted on 2014-06-17 23:52  奕然天成  阅读(237)  评论(0)    收藏  举报

导航