0
#bottom要素が親要素に残っている残りの領域の100%を満たすことができるテーブルなしレイアウトを作成することは可能ですか? JavaScriptの使用?ここでテーブルやJavaScriptなしでこれを行うことができます。コンテナの残りの高さは100%です。
は、テーブルを使用する場合にどのような作品です:
<html>
<head>
<style>
table{
height: 100%;
width: 100%;
}
#top{
background-color: blue;
height: 200px;
}
#bottom{
background-color: red;
height: 100%;
}
</style>
</head>
<body>
<table>
<tbody>
<tr id="top">
<td></td>
</tr>
<tr id="bottom">
<td></td>
</tr>
</tbody>
</table>
</body>
</html>