Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
テーブルを強制的に親 div の高さに縮小することはできますか? 100% の高さを適用しても、テーブルはコンテナーのサイズを完全に無視します。
テーブルの高さは、テーブル内の行数などに基づいて計算されます。
テーブルの高さの値を指定または継承すると、その値は最小値として扱われます。そのため、テーブルの高さが伸びることがありますが、縮むことはありません。
参考:http ://www.w3.org/TR/CSS21/tables.html#height-layout