Excel 제목 고정 효과

구글에서 찾을 수 있는 것은 붙이면 사용할 수 있지만, div가 감싸고 있는 높이가 어떤 해상도에 적응하는 브라우저인지 아직 모른다.
 
  <html>   
          <body>   
                  <table   id="table1"   border="1">   
                          <tr>   
                                  <td>a</td>   
                                  <td>bbb</td>   
                                  <td>ccccccc</td>   
                                  <td>ddd</td>   
                                  <td>ee</td>   
                          </tr>   
                  </table>   
                  <div   style="width:250;height:100px;overflow:auto">   
                          <table   id="table2"   border=1>   
                                  <tr>   
                                          <td>111</td>   
                                          <td>222</td>   
                                          <td>333</td>   
                                          <td>444</td>   
                                          <td>555</td>   
                                  </tr>   
                                  <tr>   
                                          <td>111</td>   
                                          <td>222</td>   
                                          <td>333</td>   
                                          <td>444</td>   
                                          <td>555</td>   
                                  </tr>   
                                  <tr>   
                                          <td>111</td>   
                                          <td>222</td>   
                                          <td>333</td>   
                                          <td>444</td>   
                                          <td>555</td>   
                                  </tr>   
                                  <tr>   
                                          <td>111</td>   
                                          <td>222</td>   
                                          <td>333</td>   
                                          <td>444</td>   
                                          <td>555</td>   
                                  </tr>   
                                  <tr>   
                                          <td>111</td>   
                                          <td>222</td>   
                                          <td>333</td>   
                                          <td>444</td>   
                                          <td>555</td>   
                                  </tr>   
                                  <tr>   
                                          <td>111</td>   
                                          <td>222</td>   
                                          <td>333</td>   
                                          <td>444</td>   
                                          <td>555</td>   
                                  </tr>   
                                  <tr>   
                                          <td>111</td>   
                                          <td>222</td>   
                                          <td>333</td>   
                                          <td>444</td>   
                                          <td>555</td>   
                                  </tr>   
                                  <tr>   
                                          <td>111</td>   
                                          <td>222</td>   
                                          <td>333</td>   
                                          <td>444</td>   
                                          <td>555</td>   
                                  </tr>   
                          </table>   
                  </div>   
  <Script>   
  function   init(){   
  var   tr1   =   table1.firstChild.firstChild;   
  var   tr2   =   table2.firstChild.firstChild;   
  var   cells1   =   tr1.children;   
  var   cells2   =   tr2.children;   
  for(var   i=0;i<cells1.length;i++){   
  var   maxWidth   =   Math.max(cells1[i].offsetWidth,cells2[i].offsetWidth);   
  cells1[i].style.width   =   maxWidth;   
  cells2[i].style.width   =   maxWidth;   
  }   
  }   
  init();   
  </Script>   
          </body>   
  </html>   

좋은 웹페이지 즐겨찾기