0

100% と 100% のテーブルを 1 つ含めました。

<table border="1" cellpadding="0" cellspacing="0" width="100%" height="100%"> 
    <tr height="100">
         <td>
            this is fixed height 100px
         </td>
    </tr>
    <tr>
         <td>
              <div style="height: 100%;width: 100%">
            remaining height for this td. and this div should be do only vertical scrolling without expanding the page size.
              </div>
         </td>
    </tr>
</table>

最初の tr の高さは固定高さ 100px です

この 2 番目の tr の残りの高さ。この tr には、高さと幅が 100% の div が含まれています。この div は、ページ サイズを拡大せずに垂直スクロールのみを行う必要があります。

4

5 に答える 5

0

トライstyle="height:auto; overflow-y:scroll"

于 2013-06-08T06:49:23.440 に答える