我如何保持固定位置?学校工作

时间:2016-04-19 09:37:58

标签: html css

是的。桌子。就像标题所说的那样,如何在向下滚动的同时将标题保持在1个位置?

<div style="height:400px;overflow:auto;">

  <table width="221px" border="1" bordercolor="#000000" align="right">
    <th> New Special Offers</th>
    <tr>
      <td><img src="Stuff for website/Special Offers!_s01.gif" width="221" height="203" /></td>
    </tr>
    <tr>
      <td><img src="Stuff for website/Special Offers!_s02.gif" width="221" height="200" /></td>
    </tr>
    <tr>
      <td><img src="Stuff for website/Special Offers!_s03.gif" width="221" height="210" /></td>
    </tr>
    <tr>
      <td><img src="Stuff for website/Special Offers!_s04.gif" width="220" height="204" /></td>
    </tr>
    <tr>
      <td><img src="Stuff for website/Special Offers!_s05.gif" width="221" height="198" /></td>
    </tr>
    <tr>
      <td><img src="Stuff for website/Special Offers!_s06.gif" width="221" height="200" /></td>
    </tr>
  </table>
</div>

0 个答案:

没有答案