머리, 발 및 텍스트 상자라는 세 개의 div가 있습니다. 머리와 발 div는 고정 위치이며 세 번째 div는 부분적으로 고정되어 있습니다 (여백 위쪽).동적 div 맨 아래쪽
내 질문은 : 어떻게 다른 모니터 크기를 수정하려면 텍스트 상자의 div 하단을 변경할 수 있습니까? 다리 부분에 달려 있기 때문에 100 % 높이를 사용할 수 없습니다. 이 홈페이지에서는 스크롤바를 사용하지 않습니다. 왜냐하면 backgrounk가 이미지 파일을 바꾸기 때문입니다. 나는 어떻게해서 든 마진 - 밑 부분이 모니터의 바닥과의 거리를 유지하도록 만들고 싶다.
<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>
이