head、foot、textbox の 3 つの div があります。頭と足の div は固定位置で、3 番目の div は部分的に固定されています (margin-top)。
私の質問は次のとおりです。テキストボックスの div の下部を変更して、さまざまなモニターのサイズを修正するにはどうすればよいですか? 高さ 100% は foot div にぶら下がっているため使用できません。このホームページでは、背景が画像ファイルを変更しているため、スクロールバーを使用していません。どうにかして余白部分をモニターの底から離したいです。
<html>
<head>
<title>Div bottom</title>
<style>
.head{
position:absolute;
clear:both;
top:0px;
right:0px;
float:right;
width:100%;
height:80px;
background-color:grey;
}
.foot {
position:fixed;
clear:both;
height:35px;
right:0px;
float:right;
width:100%;
background-color:grey;
bottom:0px;
}
.textbox {
overflow: hidden;
position: relative;
padding:20px;
border: 1px solid gray;
background-color:red;
z-index:0;
text-align:justify;
color:black;
line-height: 2em;
border-radius: 3px;
margin-top:100px;
width:910px;
margin-left: auto;
margin-right:auto;
}
</style>
</head>
<body>
<div class="head">HEAD</div>
<div class="textbox">?</div>
<div class="foot">FOOT</div>
</body>
</html>